]> 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:41 +0000 (15:40 -0400)
commit630a8af5933f090cb24b0fb9da0296d0a32a5675
tree55867032f75aa8e58ee8b04c2e1da8496495fa45
parent4a3613f930a1c895c2fdf83fa83a0f31b0c77e3b
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