| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| /* |
| * Magic oids |
| */ |
| |
| #ifndef PG_MAGIC_OID_H |
| #define PG_MAGIC_OID_H |
| |
| /* ---------- |
| * Object ID (OID) zero is InvalidOid. |
| * |
| * OIDs 1-9999 are reserved for manual assignment (see the files |
| * in src/include/catalog/). |
| * |
| * OIDS 10000-16383 are reserved for assignment during initdb |
| * using the OID generator. (We start the generator at 10000.) |
| * |
| * OIDs beginning at 16384 are assigned from the OID generator |
| * during normal multiuser operation. (We force the generator up to |
| * 16384 as soon as we are in normal operation.) |
| * |
| * The choices of 10000 and 16384 are completely arbitrary, and can be moved |
| * if we run low on OIDs in either category. Changing the macros below |
| * should be sufficient to do this. |
| * |
| * NOTE: if the OID generator wraps around, we skip over OIDs 0-16383 |
| * and resume with 16384. This minimizes the odds of OID conflict, by not |
| * reassigning OIDs that might have been assigned during initdb. |
| * ---------- |
| */ |
| #define FirstBootstrapObjectId 10000 |
| #define FirstNormalObjectId 16384 |
| |
| /* reserve a range of 10M for externally imported metadata: 2^32 - 10*2^20 */ |
| #define FirstExternalObjectId UINT_MAX - 10485760 /* 4284481536 */ |
| |
| /* |
| * For the time being, we split the OID range so that newly added objects |
| * won't conflict between GPDB and GPSQL. If two merge into one in some day, |
| * this boundary will disappear. |
| */ |
| #define LowestGPSQLBootstrapObjectId 6112 |
| |
| #endif |