pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Don't vacuum all-frozen pages.
5+ messages / 5 participants
[nested] [flat]

* pgsql: Don't vacuum all-frozen pages.
@ 2016-03-10 21:16  Robert Haas <rhaas@postgresql.org>
  0 siblings, 1 reply; 5+ messages in thread

From: Robert Haas @ 2016-03-10 21:16 UTC (permalink / raw)
  To: pgsql-committers

Don't vacuum all-frozen pages.

Commit a892234f830e832110f63fc0a2afce2fb21d1584 gave us enough
infrastructure to avoid vacuuming pages where every tuple on the
page is already frozen.  So, replace the notion of a scan_all or
whole-table vacuum with the less onerous notion of an "aggressive"
vacuum, which will pages that are all-visible, but still skip those
that are all-frozen.

This should greatly reduce the cost of anti-wraparound vacuuming
on large clusters where the majority of data is never touched
between one cycle and the next, because we'll no longer have to
read all of those pages only to find out that we don't need to
do anything with them.

Patch by me, reviewed by Masahiko Sawada.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fd31cd265138019dcccc9b5fe53043670898bc9f

Modified Files
--------------
doc/src/sgml/config.sgml          |  20 ++--
doc/src/sgml/maintenance.sgml     |  86 +++++++++-------
src/backend/commands/vacuumlazy.c | 209 ++++++++++++++++++++++++--------------
3 files changed, 196 insertions(+), 119 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Don't vacuum all-frozen pages.
@ 2016-03-10 21:22  Andres Freund <andres@anarazel.de>
  parent: Robert Haas <rhaas@postgresql.org>
  0 siblings, 1 reply; 5+ messages in thread

From: Andres Freund @ 2016-03-10 21:22 UTC (permalink / raw)
  To: Robert Haas <rhaas@postgresql.org>; +Cc: pgsql-committers

On 2016-03-10 21:16:37 +0000, Robert Haas wrote:
> Don't vacuum all-frozen pages.

Yeha!


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Don't vacuum all-frozen pages.
@ 2016-03-10 23:19  Peter Geoghegan <pg@heroku.com>
  parent: Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 5+ messages in thread

From: Peter Geoghegan @ 2016-03-10 23:19 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Robert Haas <rhaas@postgresql.org>; pgsql-committers

On Thu, Mar 10, 2016 at 1:22 PM, Andres Freund <andres@anarazel.de> wrote:
> Yeha!

Fantastic effort, particularly from Masahiko. Well done.


-- 
Peter Geoghegan


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Don't vacuum all-frozen pages.
@ 2016-03-11 01:08  Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
  parent: Peter Geoghegan <pg@heroku.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Amit Langote @ 2016-03-11 01:08 UTC (permalink / raw)
  To: Peter Geoghegan <pg@heroku.com>; Andres Freund <andres@anarazel.de>; +Cc: Robert Haas <rhaas@postgresql.org>; pgsql-committers

On 2016/03/11 8:19, Peter Geoghegan wrote:
> On Thu, Mar 10, 2016 at 1:22 PM, Andres Freund <andres@anarazel.de> wrote:
>> Yeha!
> 
> Fantastic effort, particularly from Masahiko. Well done.

+1!

- Amit




-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Don't vacuum all-frozen pages.
@ 2016-03-11 05:05  Michael Paquier <michael.paquier@gmail.com>
  parent: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
  0 siblings, 0 replies; 5+ messages in thread

From: Michael Paquier @ 2016-03-11 05:05 UTC (permalink / raw)
  To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>; +Cc: Peter Geoghegan <pg@heroku.com>; Andres Freund <andres@anarazel.de>; Robert Haas <rhaas@postgresql.org>; pgsql-committers

On Fri, Mar 11, 2016 at 2:08 AM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
> On 2016/03/11 8:19, Peter Geoghegan wrote:
>> On Thu, Mar 10, 2016 at 1:22 PM, Andres Freund <andres@anarazel.de> wrote:
>>> Yeha!
>>
>> Fantastic effort, particularly from Masahiko. Well done.
>
> +1!

Yuhu.
-- 
Michael


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2016-03-11 05:05 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-03-10 21:16 pgsql: Don't vacuum all-frozen pages. Robert Haas <rhaas@postgresql.org>
2016-03-10 21:22 ` Andres Freund <andres@anarazel.de>
2016-03-10 23:19   ` Peter Geoghegan <pg@heroku.com>
2016-03-11 01:08     ` Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
2016-03-11 05:05       ` Michael Paquier <michael.paquier@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox