Re: pgsql: Delay commit status checks until freezing executes.

Peter Geoghegan <pg@bowt.ie>

From: Peter Geoghegan <pg@bowt.ie>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Date: 2023-01-11T23:32:49Z
Lists: pgsql-hackers
On Wed, Jan 11, 2023 at 3:06 PM Andres Freund <andres@anarazel.de> wrote:
> > + * We can't use TransactionIdDidAbort here because it won't treat transactions
> > + * that were in progress during a crash as aborted by now.  We determine that
> > + * transactions aborted/crashed through process of elimination instead.
>
> s/by now//?

Did it that way in the commit I pushed just now.

Thanks
-- 
Peter Geoghegan



Commits

  1. Improve TransactionIdDidAbort() documentation.

  2. Check that xmax didn't commit in freeze check.

  3. Delay commit status checks until freezing executes.

  4. Add page-level freezing to VACUUM.

  5. Set relfrozenxid to oldest extant XID seen by VACUUM.