Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec99dd5

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 accompanyingcomment, are confused; remove them.Reported by Neha Sharma.Discussion:http://postgr.es/m/CANiYTQumC3T=UMBMd1Hor=5XWZYuCEQBioL3ug0YtNQCMMT5wQ@mail.gmail.com
1 parent749c7c4 commitec99dd5

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)

[8]ページ先頭

©2009-2025 Movatter.jp