Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec99dd5

Browse files
committed
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
1 parent 749c7c4 commit ec99dd5

File tree

1 file changed

+0
-4
lines changed
  • src/backend/access/transam

1 file changed

+0
-4
lines changed

src/backend/access/transam/clog.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,6 @@ TruncateCLOG(TransactionId oldestXact, Oid oldestxid_datoid)
678678
*/
679679
AdvanceOldestClogXid(oldestXact);
680680

681-
/* vac_truncate_clog already advanced oldestXid */
682-
Assert(TransactionIdPrecedesOrEquals(oldestXact,
683-
ShmemVariableCache->oldestXid));
684-
685681
/*
686682
* Write XLOG record and flush XLOG to disk. We record the oldest xid
687683
* we're keeping information about here so we can ensure that it's always

0 commit comments

Comments
 (0)