upgrade: accept missing toast table OIDs
As attribute types change, tables that were not toastable in previous
GPDB versions may become toastable, and we won't have a preassigned OID
ready to go. Deal with this by assigning a new one on the fly.
@@ -702,6 +702,9 @@ GetPreassignedOidForRelation(Oid namespaceOid, const char *relname)
if (namespaceOid == PG_BITMAPINDEX_NAMESPACE)
return InvalidOid;
+ if (namespaceOid == PG_TOAST_NAMESPACE)
+ return InvalidOid;
+
if (namespaceOid == PG_AOSEGMENT_NAMESPACE)
return InvalidOid;
}
