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

Commit66fbcb0

Browse files
Avoid hot standby cancels from VAC FREEZE
VACUUM FREEZE generated false cancelations of standby queries on anotherwise idle master. Caused by an off-by-one error on cutoff_xidwhich goes back to original commit.Backpatch to all versions 9.0+Analysis and report by Marco NenciariniBug fix by Simon Riggs
1 parent7d60b2a commit66fbcb0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/backend/access/heap/heapam.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7572,9 +7572,12 @@ heap_xlog_freeze_page(XLogReaderState *record)
75727572
if (InHotStandby)
75737573
{
75747574
RelFileNodernode;
7575+
TransactionIdlatestRemovedXid=cutoff_xid;
7576+
7577+
TransactionIdRetreat(latestRemovedXid);
75757578

75767579
XLogRecGetBlockTag(record,0,&rnode,NULL,NULL);
7577-
ResolveRecoveryConflictWithSnapshot(cutoff_xid,rnode);
7580+
ResolveRecoveryConflictWithSnapshot(latestRemovedXid,rnode);
75787581
}
75797582

75807583
if (XLogReadBufferForRedo(record,0,&buffer)==BLK_NEEDS_REDO)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp