]> granicus.if.org Git - postgresql/commit
Correct StartupSUBTRANS for page wraparound
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 19 Feb 2016 08:31:12 +0000 (08:31 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 19 Feb 2016 08:31:12 +0000 (08:31 +0000)
commit481725c0ba731b77fb32cadb12013373e378011a
tree16348e2d654c913c54da6e0fb9859811f28f56ff
parenta914a0414232e30943f7b2ffd997d74bd018a7b1
Correct StartupSUBTRANS for page wraparound

StartupSUBTRANS() incorrectly handled cases near the max pageid in the subtrans
data structure, which in some cases could lead to errors in startup for Hot
Standby.
This patch wraps the pageids correctly, avoiding any such errors.
Identified by exhaustive crash testing by Jeff Janes.

Jeff Janes
src/backend/access/transam/subtrans.c