aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/clog.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-08-10 11:20:57 -0400
committerRobert Haas <rhaas@postgresql.org>2017-08-10 11:20:57 -0400
commitec99dd5aee8b831760046d43098c2d1cf23157ed (patch)
tree452f240c26b24f021c2ecb73ad50ecf086c8d614 /src/backend/access/transam/clog.c
parent749c7c41701c62d96a56af1531e4f51e39173be3 (diff)
downloadpostgresql-ec99dd5aee8b831760046d43098c2d1cf23157ed.tar.gz
postgresql-ec99dd5aee8b831760046d43098c2d1cf23157ed.zip
Remove incorrect assertion in clog.c
We must advance the oldest XID that can be safely looked up in clog *before* truncating CLOG, and the oldest XID that can't be reused *after* truncating CLOG. This assertion, and the accompanying comment, are confused; remove them. Reported by Neha Sharma. Discussion: http://postgr.es/m/CANiYTQumC3T=UMBMd1Hor=5XWZYuCEQBioL3ug0YtNQCMMT5wQ@mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/clog.c')
-rw-r--r--src/backend/access/transam/clog.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/backend/access/transam/clog.c b/src/backend/access/transam/clog.c
index c34e7e1945f..0a7e2b310f1 100644
--- a/src/backend/access/transam/clog.c
+++ b/src/backend/access/transam/clog.c
@@ -678,10 +678,6 @@ TruncateCLOG(TransactionId oldestXact, Oid oldestxid_datoid)
*/
AdvanceOldestClogXid(oldestXact);
- /* vac_truncate_clog already advanced oldestXid */
- Assert(TransactionIdPrecedesOrEquals(oldestXact,
- ShmemVariableCache->oldestXid));
-
/*
* Write XLOG record and flush XLOG to disk. We record the oldest xid
* we're keeping information about here so we can ensure that it's always