pgsql: Correct StartupSUBTRANS for page wraparound

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Correct StartupSUBTRANS for page wraparound
Date: 2016-02-19 08:35:47
Message-ID: E1aWgXT-000212-RF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/481725c0ba731b77fb32cadb12013373e378011a

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

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2016-02-19 08:36:11 pgsql: Correct StartupSUBTRANS for page wraparound
Previous Message Peter Eisentraut 2016-02-19 01:33:42 pgsql: pg_dump: Fix inconsistent sscanf() conversions