]> granicus.if.org Git - postgresql/commit
Fix handling of OID wraparound while in standalone mode.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 May 2013 19:40:16 +0000 (15:40 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 May 2013 19:41:04 +0000 (15:41 -0400)
commite150773ffad96e13184c57e98bd07229840de3f4
tree188b60669f4b5bb7f94be07914a15bcb53f84e75
parentdbd68df9b636d4b36469dab7281a2e7d38863570
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.
src/backend/access/transam/varsup.c