Commit
f4ece891fc2f3f96f0571720a1ae30db8030681b added the assertion in
an attempt to catch some defects even after VACUUM FULL or REINDEX.
However, IsCatalogTextUniqueIndexOid(tag.relNumber) always returns false
after a relfilenode change, provoking unintended assertion failures.
Reported-by: Adam Guo <[email protected]>
Reviewed-by: Masahiko Sawada <[email protected]>
Bug: #18912
Discussion: https://postgr.es/m/18912-
a41c9bd0e0ad19b1@postgresql.org
return;
Assert(!IsCatalogRelationOid(relid));
- /* Shared rels are always catalogs: detect even after VACUUM FULL. */
- Assert(tag.spcOid != GLOBALTABLESPACE_OID);
}
#endif