Re: Access to transaction status - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Access to transaction status
Date
Msg-id 17744.1056117858@sss.pgh.pa.us
Whole thread Raw
In response to Re: Access to transaction status  ("Christian Plattner" <postgresql@sioux.ch>)
List pgsql-hackers
"Christian Plattner" <postgresql@sioux.ch> writes:
> From: "Tom Lane" <tgl@sss.pgh.pa.us>
>> How much later?  clog is not kept forever.

> As far as I understand your code there is only one chance that information
> in clog gets lost:
> If XIDs are reused then ExtendCLOG will overwrite existing entries.
> Also, it seems to me that VACCUM has not effect on the clog.

You're quite mistaken.  clog is truncated during vacuum, once we are
confident that there are no unvacuumed rows in the database with XIDs
older than a certain point.  This is to keep clog space requirements
within reason.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Ownership change doesn't change privileges
Next
From: Tom Lane
Date:
Subject: Re: Subtraction carry bug in xlog.c in 7.3 and 7.4