pg_upgrade: prevent automatic oid assignment
Bruce Momjian <bruce@momjian.us>
pg_upgrade: prevent automatic oid assignment Prevent automatic oid assignment when in binary upgrade mode. Also throw an error when contrib/pg_upgrade_support functions are called when not in binary upgrade mode. This prevent automatically-assigned oids from conflicting with later pre-assigned oids coming from the old cluster. It also makes sure oids are preserved in call important cases.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_upgrade_support/pg_upgrade_support.c | modified | +17 −0 |
| src/backend/catalog/heap.c | modified | +7 −5 |
| src/backend/catalog/index.c | modified | +7 −6 |
| src/backend/catalog/pg_enum.c | modified | +6 −1 |
| src/backend/catalog/pg_type.c | modified | +13 −3 |
| src/backend/catalog/toasting.c | modified | +5 −1 |
| src/backend/commands/typecmds.c | modified | +7 −2 |
| src/backend/commands/user.c | modified | +7 −2 |