pgsql: Simplify multixact freezing a bit

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Simplify multixact freezing a bit
Date: 2014-07-29 19:44:42
Message-ID: E1XCDKE-0003Lk-EH@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2014-07-30 02:09:21 pgsql: pg_upgrade: improve C comment wording
Previous Message Heikki Linnakangas 2014-07-29 14:27:19 Re: pgsql: Treat 2PC commit/abort the same as regular xacts in recovery.