]> granicus.if.org Git - postgresql/commit
Track the oldest XID that can be safely looked up in CLOG.
authorRobert Haas <rhaas@postgresql.org>
Thu, 23 Mar 2017 18:08:23 +0000 (14:08 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 23 Mar 2017 18:26:31 +0000 (14:26 -0400)
commitea42cc18c35381f639d45628d792e790ff39e271
tree223916f28189cb8fb5b40793ff563928795f62ca
parent50c956add83963d7bbb367dd0b879fccddebd623
Track the oldest XID that can be safely looked up in CLOG.

This provides infrastructure for looking up arbitrary, user-supplied
XIDs without a risk of scary-looking failures from within the clog
module.  Normally, the oldest XID that can be safely looked up in CLOG
is the same as the oldest XID that can reused without causing
wraparound, and the latter is already tracked.  However, while
truncation is in progress, the values are different, so we must
keep track of them separately.

Craig Ringer, reviewed by Simon Riggs and by me.

Discussion: http://postgr.es/m/CAMsr+YHQiWNEi0daCTboS40T+V5s_+dst3PYv_8v2wNVH+Xx4g@mail.gmail.com
doc/src/sgml/monitoring.sgml
src/backend/access/rmgrdesc/clogdesc.c
src/backend/access/transam/clog.c
src/backend/access/transam/transam.c
src/backend/access/transam/varsup.c
src/backend/access/transam/xlog.c
src/backend/commands/vacuum.c
src/backend/storage/lmgr/lwlocknames.txt
src/include/access/clog.h
src/include/access/transam.h
src/include/access/xlog_internal.h