OSDN Git Service

Change tqual.c tests to use !TransactionIdIsCurrentTransactionId, rather than
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Sep 2007 18:24:28 +0000 (18:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Sep 2007 18:24:28 +0000 (18:24 +0000)
commit386a5d4268c7ae13510f0a40243b2277eccb6189
treea277295c10319b7d2a6a2a0be2855768cfd28bd6
parentda072ab2ab538bf1811abe5a1df131c0c9a8e6e4
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.
src/backend/utils/time/tqual.c