Re: Idea for getting rid of VACUUM FREEZE on cold pages - Mailing list pgsql-hackers

From Jesper Krogh
Subject Re: Idea for getting rid of VACUUM FREEZE on cold pages
Date
Msg-id 139C8666-3F12-4380-A4E7-8B23A511D2A0@krogh.cc
Whole thread Raw
In response to Re: Idea for getting rid of VACUUM FREEZE on cold pages  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Idea for getting rid of VACUUM FREEZE on cold pages
List pgsql-hackers
On 27/05/2010, at 20.00, Josh Berkus <josh@agliodbs.com> wrote:

>
>> Well, maybe I'm confused here, but arranging things so that we NEVER
>> have to visit the page after initially writing it seems like it's
>> setting the bar almost impossibly high.
>
> That is the use case, though.  What I've encountered so far at 3  
> client
> sites is tables which are largely append-only, with a few selects and
> very few updates (< 2%) on recent data.   In general, once data gets
> flushed out of memory, it goes to disk and never gets recalled, and
> certainly not written.  Thinks are hunky-dory until we reach
> max_freeze_age, at which point the server has to chew through hundreds
> of gigabytes of old data just to freeze them, sometimes bringing the
> application to a halt in the process.

The data doesn't get in there in " no time" if autovacuum was aware of  
inserts too it would incrementally freeze the table as it grows.

It would still cause it to be read in again but not in a big chunck.

Couldn't pages that are totally filled by the same transaction, be  
frozen on the initial write?

Jesper - given my limited knowledge about how it works.



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Why my manualy constructed raw parser tree produce failed to execute?
Next
From: Stephen Frost
Date:
Subject: Re: [RFC] Security label support