pgsql: Simplify multixact freezing a bit - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Simplify multixact freezing a bit
Date
Msg-id E1XCDKE-0003Lk-EH@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Simplify multixact freezing a bit

Testing for abortedness of a multixact member that's being frozen is
unnecessary: we only need to know whether the transaction is still in
progress or committed to determine whether it must be kept or not.  This
let us simplify the code a bit and avoid a useless TransactionIdDidAbort
test.

Suggested by Andres Freund awhile back.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c2581794f37e76c910eb91f1bf1f1e581123abd6

Modified Files
--------------
src/backend/access/heap/heapam.c |   56 ++++++++++++++++----------------------
1 file changed, 23 insertions(+), 33 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Treat 2PC commit/abort the same as regular xacts in recovery.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Avoid uselessly looking up old LOCK_ONLY multixacts