pgsql: Correct StartupSUBTRANS for page wraparound - Mailing list pgsql-committers

From Simon Riggs
Subject pgsql: Correct StartupSUBTRANS for page wraparound
Date
Msg-id E1aWgYN-000231-Dq@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c063d3c438d745cae11170345148f03c6f42d077

Modified Files
--------------
src/backend/access/transam/subtrans.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Simon Riggs
Date:
Subject: pgsql: Correct StartupSUBTRANS for page wraparound
Next
From: Simon Riggs
Date:
Subject: pgsql: Correct StartupSUBTRANS for page wraparound