Fix handling of OID wraparound while in standalone mode.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 65d2b4be0c86d6f514a4048c78eb20b202adba17
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-05-13T19:41:21Z
Releases: 8.4.18
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.

Files

PathChange+/−
src/backend/access/transam/varsup.c modified +9 −9