65 #include "catalog/schemapg.h"
84 #include "utils/fmgroids.h"
93 #define RELCACHE_INIT_FILEMAGIC 0x573266
99 #if defined(RECOVER_RELATION_BUILD_MEMORY) && (RECOVER_RELATION_BUILD_MEMORY != 0)
100 #define MAYBE_RECOVER_RELATION_BUILD_MEMORY 1
102 #define RECOVER_RELATION_BUILD_MEMORY 0
103 #ifdef DISCARD_CACHES_ENABLED
104 #define MAYBE_RECOVER_RELATION_BUILD_MEMORY 1
184 #define MAX_EOXACT_LIST 32
189 #define EOXactListAdd(rel) \
191 if (eoxact_list_len < MAX_EOXACT_LIST) \
192 eoxact_list[eoxact_list_len++] = (rel)->rd_id; \
194 eoxact_list_overflowed = true; \
209 #define RelationCacheInsert(RELATION, replace_allowed) \
211 RelIdCacheEnt *hentry; bool found; \
212 hentry = (RelIdCacheEnt *) hash_search(RelationIdCache, \
213 &((RELATION)->rd_id), \
214 HASH_ENTER, &found); \
218 Relation _old_rel = hentry->reldesc; \
219 Assert(replace_allowed); \
220 hentry->reldesc = (RELATION); \
221 if (RelationHasReferenceCountZero(_old_rel)) \
222 RelationDestroyRelation(_old_rel, false); \
223 else if (!IsBootstrapProcessingMode()) \
224 elog(WARNING, "leaking still-referenced relcache entry for \"%s\"", \
225 RelationGetRelationName(_old_rel)); \
228 hentry->reldesc = (RELATION); \
231 #define RelationIdCacheLookup(ID, RELATION) \
233 RelIdCacheEnt *hentry; \
234 hentry = (RelIdCacheEnt *) hash_search(RelationIdCache, \
238 RELATION = hentry->reldesc; \
243 #define RelationCacheDelete(RELATION) \
245 RelIdCacheEnt *hentry; \
246 hentry = (RelIdCacheEnt *) hash_search(RelationIdCache, \
247 &((RELATION)->rd_id), \
248 HASH_REMOVE, NULL); \
249 if (hentry == NULL) \
250 elog(WARNING, "failed to delete relcache entry for OID %u", \
251 (RELATION)->rd_id); \
285 #ifdef USE_ASSERT_CHECKING
286 static void AssertPendingSyncConsistency(
Relation relation);
295 static void formrdesc(
const char *relationName,
Oid relationReltype,
354 elog(
FATAL,
"cannot read pg_class without having selected a database");
379 if (force_non_historic)
399 return pg_class_tuple;
443 relation->
rd_rel = relationForm;
475 switch (relation->
rd_rel->relkind)
477 case RELKIND_RELATION:
478 case RELKIND_TOASTVALUE:
480 case RELKIND_MATVIEW:
481 case RELKIND_PARTITIONED_TABLE:
485 case RELKIND_PARTITIONED_INDEX:
534 relation->
rd_rel->reltype ? relation->
rd_rel->reltype : RECORDOID;
546 Anum_pg_attribute_attrelid,
550 Anum_pg_attribute_attnum,
561 AttributeRelidNumIndexId,
580 elog(
ERROR,
"invalid attribute number %d for relation \"%s\"",
588 if (attp->attnotnull)
590 if (attp->attgenerated == ATTRIBUTE_GENERATED_STORED)
596 if (attp->atthasmissing)
603 Anum_pg_attribute_attmissingval,
604 pg_attribute_desc->
rd_att,
614 if (attrmiss == NULL)
617 relation->
rd_rel->relnatts *
658 elog(
ERROR,
"pg_attribute catalog is missing %d attribute(s) for relation OID %u",
666 #ifdef USE_ASSERT_CHECKING
690 relation->
rd_rel->relchecks > 0)
701 if (relation->
rd_rel->relchecks > 0)
768 Anum_pg_rewrite_ev_class,
783 RewriteRelRulenameIndexId,
799 rule->ruleId = rewrite_form->oid;
801 rule->event = rewrite_form->ev_type -
'0';
802 rule->enabled = rewrite_form->ev_enabled;
803 rule->isInstead = rewrite_form->is_instead;
812 Anum_pg_rewrite_ev_action,
823 Anum_pg_rewrite_ev_qual,
842 relation->
rd_rel->relkind == RELKIND_VIEW &&
846 check_as_user = relation->
rd_rel->relowner;
862 if (numlocks >= maxlocks)
940 else if (rlock2 != NULL)
985 else if (policy2 != NULL)
1002 if (rsdesc1 == NULL && rsdesc2 == NULL)
1005 if ((rsdesc1 != NULL && rsdesc2 == NULL) ||
1006 (rsdesc1 == NULL && rsdesc2 != NULL))
1040 int in_progress_offset;
1061 #ifdef MAYBE_RECOVER_RELATION_BUILD_MEMORY
1068 "RelationBuildDesc workspace",
1099 #ifdef MAYBE_RECOVER_RELATION_BUILD_MEMORY
1117 Assert(relid == targetRelId);
1140 switch (relation->
rd_rel->relpersistence)
1142 case RELPERSISTENCE_UNLOGGED:
1143 case RELPERSISTENCE_PERMANENT:
1147 case RELPERSISTENCE_TEMP:
1175 elog(
ERROR,
"invalid relpersistence: %c",
1176 relation->
rd_rel->relpersistence);
1204 if (relation->
rd_rel->relkind == RELKIND_INDEX ||
1205 relation->
rd_rel->relkind == RELKIND_PARTITIONED_INDEX)
1207 else if (RELKIND_HAS_TABLE_AM(relation->
rd_rel->relkind) ||
1208 relation->
rd_rel->relkind == RELKIND_SEQUENCE)
1210 else if (relation->
rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
1229 if (relation->
rd_rel->relhasrules)
1237 if (relation->
rd_rel->relhastriggers)
1242 if (relation->
rd_rel->relrowsecurity)
1298 #ifdef MAYBE_RECOVER_RELATION_BUILD_MEMORY
1323 if (!RELKIND_HAS_STORAGE(relation->
rd_rel->relkind))
1326 if (relation->
rd_rel->reltablespace)
1335 if (relation->
rd_rel->relfilenode)
1358 elog(
ERROR,
"could not find pg_class entry for %u",
1362 relation->
rd_rel->reltablespace = physrel->reltablespace;
1363 relation->
rd_rel->relfilenode = physrel->relfilenode;
1374 relation->
rd_rel->relisshared);
1376 elog(
ERROR,
"could not find relation mapping for relation \"%s\", OID %u",
1429 Datum indclassDatum;
1430 Datum indoptionDatum;
1449 elog(
ERROR,
"cache lookup failed for index %u",
1463 elog(
ERROR,
"cache lookup failed for access method %u",
1464 relation->
rd_rel->relam);
1471 elog(
ERROR,
"relnatts disagrees with indnatts for index %u",
1504 int nsupport = indnatts * amsupport;
1529 Anum_pg_index_indcollation,
1542 Anum_pg_index_indclass,
1555 amsupport, indnkeyatts);
1561 Anum_pg_index_indoption,
1604 for (attIndex = 0; attIndex < maxAttributeNumber; attIndex++)
1616 opFamily[attIndex] = opcentry->
opcfamily;
1617 opcInType[attIndex] = opcentry->
opcintype;
1618 if (maxSupportNumber > 0)
1619 memcpy(&indexSupport[attIndex * maxSupportNumber],
1666 ctl.keysize =
sizeof(
Oid);
1679 opcentry->
valid =
false;
1697 #ifdef DISCARD_CACHES_ENABLED
1699 opcentry->
valid =
false;
1702 if (opcentry->
valid)
1720 (operatorClassOid != OID_BTREE_OPS_OID &&
1721 operatorClassOid != INT2_BTREE_OPS_OID);
1730 Anum_pg_opclass_oid,
1741 opcentry->
opcfamily = opclassform->opcfamily;
1742 opcentry->
opcintype = opclassform->opcintype;
1745 elog(
ERROR,
"could not find tuple for opclass %u", operatorClassOid);
1757 Anum_pg_amproc_amprocfamily,
1761 Anum_pg_amproc_amproclefttype,
1765 Anum_pg_amproc_amprocrighttype,
1776 if (amprocform->amprocnum <= 0 ||
1778 elog(
ERROR,
"invalid amproc number %d for opclass %u",
1779 amprocform->amprocnum, operatorClassOid);
1789 opcentry->
valid =
true;
1813 if (relation->
rd_rel->relkind == RELKIND_SEQUENCE)
1841 elog(
ERROR,
"cache lookup failed for access method %u",
1842 relation->
rd_rel->relam);
1918 relation->
rd_rel->relnamespace = PG_CATALOG_NAMESPACE;
1919 relation->
rd_rel->reltype = relationReltype;
1925 relation->
rd_rel->relisshared = isshared;
1927 relation->
rd_rel->reltablespace = GLOBALTABLESPACE_OID;
1930 relation->
rd_rel->relpersistence = RELPERSISTENCE_PERMANENT;
1933 relation->
rd_rel->relispopulated =
true;
1935 relation->
rd_rel->relreplident = REPLICA_IDENTITY_NOTHING;
1936 relation->
rd_rel->relpages = 0;
1937 relation->
rd_rel->reltuples = -1;
1938 relation->
rd_rel->relallvisible = 0;
1939 relation->
rd_rel->relkind = RELKIND_RELATION;
1941 relation->
rd_rel->relam = HEAP_TABLE_AM_OID;
1959 has_not_null =
false;
1960 for (
i = 0;
i < natts;
i++)
1965 has_not_null |= attrs[
i].attnotnull;
2012 relation->
rd_rel->relam = HEAP_TABLE_AM_OID;
2021 relation->
rd_rel->relhasindex =
false;
2026 relation->
rd_rel->relhasindex =
true;
2091 if (rd->
rd_rel->relkind == RELKIND_INDEX ||
2092 rd->
rd_rel->relkind == RELKIND_PARTITIONED_INDEX)
2131 .
name =
"relcache reference",
2219 #ifdef RELCACHE_FORCE_RELEASE
2263 relation->
rd_rel->relkind == RELKIND_PARTITIONED_INDEX) &&
2297 elog(
ERROR,
"could not find pg_class tuple for index %u",
2326 elog(
ERROR,
"cache lookup failed for index %u",
2337 relation->
rd_index->indnullsnotdistinct =
index->indnullsnotdistinct;
2391 if (relation->
rd_rel->relkind == RELKIND_INDEX)
2473 if (remember_tupdesc)
2609 if ((relation->
rd_rel->relkind == RELKIND_INDEX ||
2610 relation->
rd_rel->relkind == RELKIND_PARTITIONED_INDEX) &&
2726 elog(
ERROR,
"relation %u deleted while still in use", save_relid);
2740 keep_partkey = (relation->
rd_partkey != NULL);
2752 #define SWAPFIELD(fldtype, fldname) \
2754 fldtype _tmp = newrel->fldname; \
2755 newrel->fldname = relation->fldname; \
2756 relation->fldname = _tmp; \
2921 elog(
ERROR,
"relation %u is still open", rid);
3076 rebuildFirstList =
lcons(relation, rebuildFirstList);
3078 rebuildFirstList =
lappend(rebuildFirstList, relation);
3080 rebuildList =
lcons(relation, rebuildList);
3082 rebuildList =
lappend(rebuildList, relation);
3093 foreach(l, rebuildFirstList)
3099 foreach(l, rebuildList)
3140 #ifdef USE_ASSERT_CHECKING
3142 AssertPendingSyncConsistency(
Relation relation)
3144 bool relcache_verdict =
3147 RELKIND_HAS_STORAGE(relation->
rd_rel->relkind)) ||
3183 rels =
palloc(maxrels *
sizeof(*rels));
3191 if (locallock->
nLocks <= 0)
3200 if (nrels >= maxrels)
3203 rels =
repalloc(rels, maxrels *
sizeof(*rels));
3210 AssertPendingSyncConsistency(idhentry->
reldesc);
3212 for (
i = 0;
i < nrels;
i++)
3275 if (idhentry != NULL)
3307 bool clear_relcache =
false;
3323 #ifdef USE_ASSERT_CHECKING
3326 int expected_refcnt;
3373 elog(
WARNING,
"cannot remove relcache entry for \"%s\" because it has nonzero refcount",
3413 mySubid, parentSubid);
3424 if (idhentry != NULL)
3426 mySubid, parentSubid);
3483 elog(
WARNING,
"cannot remove relcache entry for \"%s\" because it has nonzero refcount",
3531 bool shared_relation,
3532 bool mapped_relation,
3533 char relpersistence,
3538 int natts = tupDesc->
natts;
3553 case DatabaseRelationId:
3554 case AuthIdRelationId:
3555 case AuthMemRelationId:
3556 case RelationRelationId:
3557 case AttributeRelationId:
3558 case ProcedureRelationId:
3559 case TypeRelationId:
3574 elog(
ERROR,
"shared_relation flag for \"%s\" does not match IsSharedRelation(%u)",
3578 Assert(mapped_relation || !shared_relation);
3616 has_not_null =
false;
3617 for (
i = 0;
i < natts;
i++)
3622 datt->attidentity = satt->attidentity;
3623 datt->attgenerated = satt->attgenerated;
3624 datt->attnotnull = satt->attnotnull;
3625 has_not_null |= satt->attnotnull;
3642 rel->
rd_rel->relnamespace = relnamespace;
3644 rel->
rd_rel->relkind = relkind;
3645 rel->
rd_rel->relnatts = natts;
3648 rel->
rd_rel->relowner = BOOTSTRAP_SUPERUSERID;
3651 rel->
rd_rel->relpersistence = relpersistence;
3652 switch (relpersistence)
3654 case RELPERSISTENCE_UNLOGGED:
3655 case RELPERSISTENCE_PERMANENT:
3659 case RELPERSISTENCE_TEMP:
3665 elog(
ERROR,
"invalid relpersistence: %c", relpersistence);
3670 if (relkind == RELKIND_MATVIEW)
3671 rel->
rd_rel->relispopulated =
false;
3673 rel->
rd_rel->relispopulated =
true;
3677 (relkind == RELKIND_RELATION ||
3678 relkind == RELKIND_MATVIEW ||
3679 relkind == RELKIND_PARTITIONED_TABLE))
3680 rel->
rd_rel->relreplident = REPLICA_IDENTITY_DEFAULT;
3682 rel->
rd_rel->relreplident = REPLICA_IDENTITY_NOTHING;
3689 rel->
rd_rel->relisshared = shared_relation;
3693 for (
i = 0;
i < natts;
i++)
3696 rel->
rd_rel->reltablespace = reltablespace;
3698 if (mapped_relation)
3705 rel->
rd_rel->relfilenode = relfilenumber;
3711 rel->
rd_rel->relam = accessmtd;
3720 if (RELKIND_HAS_TABLE_AM(relkind) || relkind == RELKIND_SEQUENCE)
3784 else if (relation->
rd_rel->relkind == RELKIND_INDEX)
3788 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
3789 errmsg(
"index relfilenumber value not set when in binary upgrade mode")));
3794 else if (relation->
rd_rel->relkind == RELKIND_RELATION)
3798 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
3799 errmsg(
"heap relfilenumber value not set when in binary upgrade mode")));
3806 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
3807 errmsg(
"unexpected request for new relfilenumber in binary upgrade mode")));
3817 elog(
ERROR,
"could not find tuple for relation %u",
3864 newrlocator.
relNumber = newrelfilenumber;
3866 if (RELKIND_HAS_TABLE_AM(relation->
rd_rel->relkind))
3870 &freezeXid, &minmulti);
3872 else if (RELKIND_HAS_STORAGE(relation->
rd_rel->relkind))
3883 elog(
ERROR,
"relation \"%s\" does not have storage",
3902 Assert(classform->relfrozenxid == freezeXid);
3903 Assert(classform->relminmxid == minmulti);
3904 Assert(classform->relpersistence == persistence);
3917 relation->
rd_rel->relisshared,
3926 classform->relfilenode = newrelfilenumber;
3929 if (relation->
rd_rel->relkind != RELKIND_SEQUENCE)
3931 classform->relpages = 0;
3932 classform->reltuples = -1;
3933 classform->relallvisible = 0;
3935 classform->relfrozenxid = freezeXid;
3936 classform->relminmxid = minmulti;
3937 classform->relpersistence = persistence;
3992 #define INITRELCACHESIZE 400
4009 ctl.keysize =
sizeof(
Oid);
4068 formrdesc(
"pg_database", DatabaseRelation_Rowtype_Id,
true,
4070 formrdesc(
"pg_authid", AuthIdRelation_Rowtype_Id,
true,
4072 formrdesc(
"pg_auth_members", AuthMemRelation_Rowtype_Id,
true,
4074 formrdesc(
"pg_shseclabel", SharedSecLabelRelation_Rowtype_Id,
true,
4076 formrdesc(
"pg_subscription", SubscriptionRelation_Rowtype_Id,
true,
4079 #define NUM_CRITICAL_SHARED_RELS 5
4125 needNewCacheFile =
true;
4127 formrdesc(
"pg_class", RelationRelation_Rowtype_Id,
false,
4129 formrdesc(
"pg_attribute", AttributeRelation_Rowtype_Id,
false,
4131 formrdesc(
"pg_proc", ProcedureRelation_Rowtype_Id,
false,
4133 formrdesc(
"pg_type", TypeRelation_Rowtype_Id,
false,
4136 #define NUM_CRITICAL_LOCAL_RELS 4
4173 RelationRelationId);
4175 AttributeRelationId);
4179 OperatorClassRelationId);
4181 AccessMethodProcedureRelationId);
4187 #define NUM_CRITICAL_LOCAL_INDEXES 7
4207 DatabaseRelationId);
4209 DatabaseRelationId);
4217 SharedSecLabelRelationId);
4219 #define NUM_CRITICAL_SHARED_INDEXES 6
4245 bool restart =
false;
4264 errcode(ERRCODE_UNDEFINED_OBJECT),
4293 elog(
ERROR,
"invalid relowner in pg_class entry for \"%s\"",
4311 relation->
rd_rel->relhasrules =
false;
4314 if (relation->
rd_rel->relhastriggers && relation->
trigdesc == NULL)
4318 relation->
rd_rel->relhastriggers =
false;
4339 (RELKIND_HAS_TABLE_AM(relation->
rd_rel->relkind) || relation->
rd_rel->relkind == RELKIND_SEQUENCE))
4362 if (needNewCacheFile)
4401 errmsg_internal(
"could not open critical system index %u", indexoid));
4435 for (
i = 0;
i < natts;
i++)
4458 if (pgclassdesc == NULL)
4471 if (pgindexdesc == NULL)
4504 Anum_pg_attrdef_adrelid,
4521 elog(
WARNING,
"unexpected pg_attrdef record found for attribute %d of relation \"%s\"",
4527 Anum_pg_attrdef_adbin,
4530 elog(
WARNING,
"null adbin for attribute %d of relation \"%s\"",
4537 attrdef[found].
adnum = adform->adnum;
4548 elog(
WARNING,
"%d pg_attrdef record(s) missing for relation \"%s\"",
4586 int ncheck = relation->
rd_rel->relchecks;
4600 Anum_pg_constraint_conrelid,
4615 if (conform->contype != CONSTRAINT_CHECK)
4619 if (found >= ncheck)
4621 elog(
WARNING,
"unexpected pg_constraint record found for relation \"%s\"",
4626 check[found].
ccvalid = conform->convalidated;
4633 Anum_pg_constraint_conbin,
4634 conrel->
rd_att, &isnull);
4652 if (found != ncheck)
4653 elog(
WARNING,
"%d pg_constraint record(s) missing for relation \"%s\"",
4710 if (!relation->
rd_rel->relhastriggers &&
4711 relation->
rd_rel->relkind != RELKIND_PARTITIONED_TABLE)
4724 Anum_pg_constraint_conrelid,
4738 if (constraint->contype != CONSTRAINT_FOREIGN)
4742 info->
conoid = constraint->oid;
4743 info->
conrelid = constraint->conrelid;
4744 info->
confrelid = constraint->confrelid;
4750 NULL, NULL, NULL, NULL);
4753 result =
lappend(result, info);
4812 char replident = relation->
rd_rel->relreplident;
4815 bool pkdeferrable =
false;
4832 Anum_pg_index_indrelid,
4850 if (!
index->indislive)
4861 if (!
index->indisvalid || !
index->indisunique ||
4862 !
index->indimmediate ||
4867 if (
index->indisprimary)
4868 pkeyIndex =
index->indexrelid;
4871 if (
index->indisreplident)
4872 candidateIndex =
index->indexrelid;
4888 if (replident == REPLICA_IDENTITY_DEFAULT &&
OidIsValid(pkeyIndex) && !pkdeferrable)
4890 else if (replident == REPLICA_IDENTITY_INDEX &&
OidIsValid(candidateIndex))
4952 Anum_pg_statistic_ext_stxrelid,
5064 Anum_pg_index_indexprs,
5116 Anum_pg_index_indexprs,
5126 foreach(lc, rawExprs)
5177 Anum_pg_index_indpred,
5255 List *newindexoidlist;
5277 elog(
ERROR,
"unknown attrKind %u", attrKind);
5292 if (indexoidlist ==
NIL)
5316 pkindexattrs = NULL;
5317 idindexattrs = NULL;
5318 hotblockingattrs = NULL;
5319 summarizedattrs = NULL;
5320 foreach(l, indexoidlist)
5326 Node *indexExpressions;
5327 Node *indexPredicate;
5350 indexExpressions = NULL;
5357 indexPredicate = NULL;
5360 isKey = indexDesc->
rd_index->indisunique &&
5361 indexExpressions == NULL &&
5362 indexPredicate == NULL;
5365 isPK = (indexOid == relpkindex);
5368 isIDKey = (indexOid == relreplindex);
5376 attrs = &summarizedattrs;
5378 attrs = &hotblockingattrs;
5381 for (
i = 0;
i < indexDesc->
rd_index->indnatts;
i++)
5383 int attrnum = indexDesc->
rd_index->indkey.values[
i];
5404 if (isKey && i < indexDesc->rd_index->indnkeyatts)
5408 if (isPK && i < indexDesc->rd_index->indnkeyatts)
5412 if (isIDKey && i < indexDesc->rd_index->indnkeyatts)
5434 if (
equal(indexoidlist, newindexoidlist) &&
5491 return pkindexattrs;
5493 return idindexattrs;
5495 return hotblockingattrs;
5497 return summarizedattrs;
5499 elog(
ERROR,
"unknown attrKind %u", attrKind);
5549 elog(
ERROR,
"could not open relation with OID %u",
5553 for (
i = 0;
i < indexDesc->
rd_index->indnatts;
i++)
5555 int attrnum = indexDesc->
rd_index->indkey.values[
i];
5563 if (i < indexDesc->rd_index->indnkeyatts)
5581 return idindexattrs;
5617 *operators = ops = (
Oid *)
palloc(
sizeof(
Oid) * indnkeyatts);
5618 *procs = funcs = (
Oid *)
palloc(
sizeof(
Oid) * indnkeyatts);
5624 memcpy(ops, indexRelation->
rd_exclops,
sizeof(
Oid) * indnkeyatts);
5625 memcpy(funcs, indexRelation->
rd_exclprocs,
sizeof(
Oid) * indnkeyatts);
5640 Anum_pg_constraint_conrelid,
5658 if ((conform->contype != CONSTRAINT_EXCLUSION &&
5659 !(conform->conperiod && (
5660 conform->contype == CONSTRAINT_PRIMARY
5661 || conform->contype == CONSTRAINT_UNIQUE))) ||
5667 elog(
ERROR,
"unexpected exclusion constraint record found for rel %s",
5673 Anum_pg_constraint_conexclop,
5674 conrel->
rd_att, &isnull);
5676 elog(
ERROR,
"null conexclop for rel %s",
5682 nelem != indnkeyatts ||
5685 elog(
ERROR,
"conexclop is not a 1-D Oid array");
5694 elog(
ERROR,
"exclusion constraint record missing for rel %s",
5698 for (
i = 0;
i < indnkeyatts;
i++)
5705 elog(
ERROR,
"could not find strategy for operator %u in family %u",
5714 memcpy(indexRelation->
rd_exclops, ops,
sizeof(
Oid) * indnkeyatts);
5715 memcpy(indexRelation->
rd_exclprocs, funcs,
sizeof(
Oid) * indnkeyatts);
5772 if (relation->
rd_rel->relispartition)
5777 foreach(lc, ancestors)
5790 foreach(lc, puboids)
5799 elog(
ERROR,
"cache lookup failed for publication %u", pubid);
5815 if (!pubform->puballtables &&
5816 (pubform->pubupdate || pubform->pubdelete) &&
5818 pubform->pubviaroot))
5820 if (pubform->pubupdate)
5822 if (pubform->pubdelete)
5832 if (!pubform->puballtables &&