pgsql: Fix handling of OID wraparound while in standalone mode.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix handling of OID wraparound while in standalone mode.
Date: 2013-05-13 19:41:50
Message-ID: E1Ubyd4-0003He-9z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2013-05-14 02:02:42 pgsql: pg_upgrade: Replace tabs in output string constants by spaces
Previous Message Tom Lane 2013-05-12 17:08:24 pgsql: Fix handling of strict non-set functions with NULLs in set-value