Fix relcache to account properly for subtransaction status of 'new'

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1c72d0dec1d9e087ddf4010fac098153677bf77d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-08-28T20:31:44Z
Releases: 8.0.0
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.

Files