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