pgsql: Fix handling of OID wraparound while in standalone mode. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix handling of OID wraparound while in standalone mode.
Date
Msg-id E1Ubyd4-0003He-9z@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix handling of OID wraparound while in standalone mode.

If OID wraparound should occur while in standalone mode (unlikely but
possible), we want to advance the counter to FirstNormalObjectId not
FirstBootstrapObjectId.  Otherwise, user objects might be created with OIDs
in the system-reserved range.  That isn't immediately harmful but it poses
a risk of conflicts during future pg_upgrade operations.

Noted by Andres Freund.  Back-patch to all supported branches, since all of
them are supported sources for pg_upgrade operations.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/630a8af5933f090cb24b0fb9da0296d0a32a5675

Modified Files
--------------
src/backend/access/transam/varsup.c |   18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix handling of OID wraparound while in standalone mode.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Fix order of options on pgbench man page