File tree 1 file changed +3
-5
lines changed
src/backend/access/transam 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -476,11 +476,9 @@ GetNewObjectId(void)
476
476
477
477
/*
478
478
* Check for wraparound of the OID counter. We *must* not return 0
479
- * (InvalidOid); and as long as we have to check that, it seems a good
480
- * idea to skip over everything below FirstNormalObjectId too. (This
481
- * basically just avoids lots of collisions with bootstrap-assigned OIDs
482
- * right after a wrap occurs, so as to avoid a possibly large number of
483
- * iterations in GetNewOid.) Note we are relying on unsigned comparison.
479
+ * (InvalidOid), and in normal operation we mustn't return anything below
480
+ * FirstNormalObjectId since that range is reserved for initdb (see
481
+ * IsCatalogClass()). Note we are relying on unsigned comparison.
484
482
*
485
483
* During initdb, we start the OID generator at FirstBootstrapObjectId, so
486
484
* we only wrap if before that point when in bootstrap or standalone mode.
You can’t perform that action at this time.
0 commit comments