]> 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:21 +0000 (15:41 -0400)
commit65d2b4be0c86d6f514a4048c78eb20b202adba17
treee472e856803bf0fd81caeed531831f5bdc4c0794
parent79e5d72f3cbbb1b337dbdc5a7e08cd3804ca9d50
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