Re: SetBufferCommitInfoNeedsSave and race conditions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SetBufferCommitInfoNeedsSave and race conditions
Date
Msg-id 13140.1183130028@sss.pgh.pa.us
Whole thread Raw
In response to Re: SetBufferCommitInfoNeedsSave and race conditions  ("Simon Riggs" <simon@2ndquadrant.com>)
Responses Re: SetBufferCommitInfoNeedsSave and race conditions
List pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> On Thu, 2007-06-28 at 20:23 -0400, Tom Lane wrote:
>> The methodology I suggested earlier (involving tracking LSN only at the
>> level of pg_clog pages) isn't going to make that work, unless you
>> somehow force the XID counter forward to the next page boundary.

> If you completely flush WAL after the AccessExclusiveLock has been taken
> by VF, then you are guaranteed to have flushed all asynchronous commits
> that touch the table.

I don't believe this is correct (see system catalogs) and in any case
it's far too fragile for my taste.  I think it'd be a lot better to just
stop referencing the hint bits directly in VACUUM FULL.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Configurable Additional Stats
Next
From: Andrew Dunstan
Date:
Subject: time to play ...