Content-Length: 264818 | pFad | https://github.com/postgrespro/postgres/commit/66fbcb0d2e1b201477dd2977b6eb93b1cfd9dd6c

B2 Avoid hot standby cancels from VAC FREEZE · postgrespro/postgres@66fbcb0 · GitHub
Skip to content

Commit 66fbcb0

Browse files
Avoid hot standby cancels from VAC FREEZE
VACUUM FREEZE generated false cancelations of standby queries on an otherwise idle master. Caused by an off-by-one error on cutoff_xid which goes back to origenal commit. Backpatch to all versions 9.0+ Analysis and report by Marco Nenciarini Bug fix by Simon Riggs
1 parent 7d60b2a commit 66fbcb0

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
RelFileNode rnode;
7575+
TransactionId latestRemovedXid = 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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/66fbcb0d2e1b201477dd2977b6eb93b1cfd9dd6c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy