]> 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:40:52 +0000 (15:40 -0400)
commitee249498a99a1b3be9906aa91f0783939ceb1e21
tree69bf6e99a35a458269bfa506088e5a8334f4572b
parent0c2c0f82c2cd6d2fa83955e9d767059639010ffc
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