Avoid hot standby cancels from VAC FREEZE

Simon Riggs <simon@2ndQuadrant.com>

Commit: 9e23d05b256adb0964f13464f9be5ae6e856cd19
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2015-06-26T23:48:06Z
Releases: 9.1.19
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 original commit.

Backpatch to all versions 9.0+

Analysis and report by Marco Nenciarini

Bug fix by Simon Riggs

Files

PathChange+/−
src/backend/access/heap/heapam.c modified +7 −1