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

Commit892a0e4

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 parentd66b67f commit892a0e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7064,7 +7064,13 @@ heap_xlog_freeze_page(XLogRecPtr lsn, XLogRecord *record)
70647064
* consider the frozen xids as running.
70657065
*/
70667066
if (InHotStandby)
7067-
ResolveRecoveryConflictWithSnapshot(cutoff_xid,xlrec->node);
7067+
{
7068+
TransactionIdlatestRemovedXid=cutoff_xid;
7069+
7070+
TransactionIdRetreat(latestRemovedXid);
7071+
7072+
ResolveRecoveryConflictWithSnapshot(latestRemovedXid,rnode);
7073+
}
70687074

70697075
/* If we have a full-page image, restore it and we're done */
70707076
if (record->xl_info&XLR_BKP_BLOCK(0))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp