Re: Page at a time index scan - Mailing list pgsql-patches

From Tom Lane
Subject Re: Page at a time index scan
Date
Msg-id 27275.1146856384@sss.pgh.pa.us
Whole thread Raw
In response to Re: Page at a time index scan  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-patches
Heikki Linnakangas <hlinnaka@iki.fi> writes:
> The first solution that occurs to me is to force page splits to choose the
> target page so that it's blkno > the original page's blkno during vacuum.

I thought about that too, but don't like it for three reasons:

* it encourages index bloat, the more the longer the vacuum runs.  Not
good, especially if you've got aggressive vacuum cost delay settings.

* there's a locking problem with respect to how you turn that behavior on.

* there's a failure mode where the behavior doesn't get turned off if
vacuum fails partway through.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [COMMITTERS] pgsql: Don't try to compile SSL CRL support
Next
From: Tom Lane
Date:
Subject: Re: Page at a time index scan