Re: Pre-allocated free space for row - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Pre-allocated free space for row
Date
Msg-id 1722.1125498795@sss.pgh.pa.us
Whole thread Raw
In response to Re: Pre-allocated free space for row  (Hannu Krosing <hannu@skype.net>)
Responses Re: Pre-allocated free space for row  (Hannu Krosing <hannu@skype.net>)
List pgsql-hackers
Hannu Krosing <hannu@skype.net> writes:
> On K, 2005-08-31 at 16:50 +0900, Satoshi Nagayasu wrote:
>> VACUUM generates a huge load because it repaires all pages
>> on the table file.
>> 
>> I think (more light-weight) repairing on a single page
>> is needed to maintain free space in the specific page.

> There have been plans floating around for adding a more lightweight
> vacuum, which uses something similar to FSM to keep track of pages which
> need vacuuming. And possibly integreated with background writer to make
> effective use of I/O resources.

> I guess it could be used for this case of "cheap page cleanups" as well.

Pretty much all of these ideas fall down when you remember that you have
to fix indexes too.  There's no such thing as a "cheap page cleanup",
except maybe in a table with no indexes.  Cleaning out the indexes
efficiently requires a certain amount of batch processing, which leads
straight back to VACUUM.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Call for 7.5 feature completion
Next
From: Devrim GUNDUZ
Date:
Subject: Re: problems installing pgsql