pgsql: Change tqual.c tests to use !TransactionIdIsCurrentTransactionId,

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change tqual.c tests to use !TransactionIdIsCurrentTransactionId,
Date: 2007-09-21 18:24:28
Message-ID: 20070921182428.6B7FB753E4C@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Change tqual.c tests to use !TransactionIdIsCurrentTransactionId, rather than
TransactionIdDidAbort, when handling the case that xmin is one of the current
transaction's XIDs and the tuple has been deleted. xmax must also be one of
the current transaction's XIDs, since no one else can see it yet, and it's
cheaper to look at local state than shared state to find out if xmax aborted.
Per an idea of Heikki's.

Modified Files:
--------------
pgsql/src/backend/utils/time:
tqual.c (r1.105 -> r1.106)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/time/tqual.c?r1=1.105&r2=1.106)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-09-21 21:25:42 pgsql: Improve handling of prune/no-prune decisions by storing a page's
Previous Message Tom Lane 2007-09-21 17:36:53 pgsql: Make some simple performance improvements in