Correct StartupSUBTRANS for page wraparound
authorSimon Riggs <[email protected]>
Fri, 19 Feb 2016 08:33:52 +0000 (08:33 +0000)
committerSimon Riggs <[email protected]>
Fri, 19 Feb 2016 08:33:52 +0000 (08:33 +0000)
commitc063d3c438d745cae11170345148f03c6f42d077
tree8f92080feb59b3072eb349b27121749aef9d7047
parent29f299728be0de392d25c7f979968a43ae865202
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