|
33 | 33 | #include"utils/rel.h"
|
34 | 34 | #include"utils/syscache.h"
|
35 | 35 |
|
| 36 | +/* Potentially set by contrib/pg_upgrade_support functions */ |
36 | 37 | Oidbinary_upgrade_next_pg_type_oid=InvalidOid;
|
37 | 38 |
|
38 | 39 | /* ----------------------------------------------------------------
|
@@ -121,6 +122,7 @@ TypeShellMake(const char *typeName, Oid typeNamespace, Oid ownerId)
|
121 | 122 | */
|
122 | 123 | tup=heap_form_tuple(tupDesc,values,nulls);
|
123 | 124 |
|
| 125 | +/* Use binary-upgrade override for pg_type.oid, if supplied. */ |
124 | 126 | if (OidIsValid(binary_upgrade_next_pg_type_oid))
|
125 | 127 | {
|
126 | 128 | HeapTupleSetOid(tup,binary_upgrade_next_pg_type_oid);
|
@@ -422,6 +424,7 @@ TypeCreate(Oid newTypeOid,
|
422 | 424 | /* Force the OID if requested by caller */
|
423 | 425 | if (OidIsValid(newTypeOid))
|
424 | 426 | HeapTupleSetOid(tup,newTypeOid);
|
| 427 | +/* Use binary-upgrade override for pg_type.oid, if supplied. */ |
425 | 428 | elseif (OidIsValid(binary_upgrade_next_pg_type_oid))
|
426 | 429 | {
|
427 | 430 | HeapTupleSetOid(tup,binary_upgrade_next_pg_type_oid);
|
|