Tweak code so that pg_subtrans is never consulted for XIDs older than
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Aug 2004 02:41:58 +0000 (02:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Aug 2004 02:41:58 +0000 (02:41 +0000)
commitf009c316ba49857249611bc0d578c518c449879e
tree4fbab4d7068969dced2e698735407b1ffca38075
parent37d937ea2c062093887e6aa03879166b6db06900
Tweak code so that pg_subtrans is never consulted for XIDs older than
RecentXmin (== MyProc->xmin).  This ensures that it will be safe to
truncate pg_subtrans at RecentGlobalXmin, which should largely eliminate
any fear of bloat.  Along the way, eliminate SubTransXidsHaveCommonAncestor,
which isn't really needed and could not give a trustworthy result anyway
under the lookback restriction.
In an unrelated but nearby change, #ifdef out GetUndoRecPtr, which has
been dead code since 2001 and seems unlikely to ever be resurrected.
src/backend/access/transam/subtrans.c
src/backend/access/transam/transam.c
src/backend/storage/ipc/sinval.c
src/backend/storage/lmgr/lmgr.c
src/backend/utils/time/tqual.c
src/include/access/subtrans.h
src/include/access/xlog.h