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

Commit9af67b6

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 parentb6c4b58 commit9af67b6

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
@@ -7517,7 +7517,13 @@ heap_xlog_freeze_page(XLogRecPtr lsn, XLogRecord *record)
75177517
* consider the frozen xids as running.
75187518
*/
75197519
if (InHotStandby)
7520-
ResolveRecoveryConflictWithSnapshot(cutoff_xid,xlrec->node);
7520+
{
7521+
TransactionIdlatestRemovedXid=cutoff_xid;
7522+
7523+
TransactionIdRetreat(latestRemovedXid);
7524+
7525+
ResolveRecoveryConflictWithSnapshot(latestRemovedXid,rnode);
7526+
}
75217527

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp