]> granicus.if.org Git - postgresql/commit
Correct StartupSUBTRANS for page wraparound
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 19 Feb 2016 08:31:39 +0000 (08:31 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 19 Feb 2016 08:31:39 +0000 (08:31 +0000)
commitc479024d325a02e0eb352e5b7f1873b4c51a5205
tree0166bbdda10b2edaedf26e3be565a54517e2f44b
parent6f43c4d34844c400a159c40909ff227ca1d870cc
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