Fix relcache to account properly for subtransaction status of 'new'
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Aug 2004 20:31:44 +0000 (20:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Aug 2004 20:31:44 +0000 (20:31 +0000)
commit1c72d0dec1d9e087ddf4010fac098153677bf77d
treea8b1b309ed00be2afe1152e4001552ff6496dddf
parentf900af7961fb7009242dbcaf3b484d4b1ed8752d
Fix relcache to account properly for subtransaction status of 'new'
relcache entries.  Also, change TransactionIdIsCurrentTransactionId()
so that if consulted during transaction abort, it will not say that
the aborted xact is still current.  (It would be better to ensure that
it's never called at all during abort, but I'm not sure we can easily
guarantee that.)  In combination, these fix a crash we have seen
occasionally during parallel regression tests of 8.0.
src/backend/access/hash/hashpage.c
src/backend/access/heap/hio.c
src/backend/access/nbtree/nbtpage.c
src/backend/access/transam/xact.c
src/backend/utils/cache/relcache.c
src/include/utils/rel.h
src/include/utils/relcache.h