88 #include "utils/fmgroids.h"
126 AccessMethodRelationId,
139 "access method operator",
140 AccessMethodOperatorRelationId,
141 AccessMethodOperatorOidIndexId,
153 "access method procedure",
154 AccessMethodProcedureRelationId,
155 AccessMethodProcedureOidIndexId,
186 Anum_pg_collation_oid,
187 Anum_pg_collation_collname,
188 Anum_pg_collation_collnamespace,
189 Anum_pg_collation_collowner,
196 ConstraintRelationId,
197 ConstraintOidIndexId,
200 Anum_pg_constraint_oid,
201 Anum_pg_constraint_conname,
202 Anum_pg_constraint_connamespace,
210 ConversionRelationId,
211 ConversionOidIndexId,
214 Anum_pg_conversion_oid,
215 Anum_pg_conversion_conname,
216 Anum_pg_conversion_connamespace,
217 Anum_pg_conversion_conowner,
228 Anum_pg_database_oid,
229 Anum_pg_database_datname,
231 Anum_pg_database_datdba,
232 Anum_pg_database_datacl,
238 DefaultAclRelationId,
239 DefaultAclOidIndexId,
242 Anum_pg_default_acl_oid,
256 Anum_pg_extension_oid,
257 Anum_pg_extension_extname,
259 Anum_pg_extension_extowner,
265 "foreign-data wrapper",
266 ForeignDataWrapperRelationId,
267 ForeignDataWrapperOidIndexId,
270 Anum_pg_foreign_data_wrapper_oid,
271 Anum_pg_foreign_data_wrapper_fdwname,
273 Anum_pg_foreign_data_wrapper_fdwowner,
274 Anum_pg_foreign_data_wrapper_fdwacl,
280 ForeignServerRelationId,
281 ForeignServerOidIndexId,
284 Anum_pg_foreign_server_oid,
285 Anum_pg_foreign_server_srvname,
287 Anum_pg_foreign_server_srvowner,
288 Anum_pg_foreign_server_srvacl,
299 Anum_pg_proc_proname,
300 Anum_pg_proc_pronamespace,
301 Anum_pg_proc_proowner,
312 Anum_pg_language_oid,
313 Anum_pg_language_lanname,
315 Anum_pg_language_lanowner,
316 Anum_pg_language_lanacl,
321 "large object metadata",
322 LargeObjectMetadataRelationId,
323 LargeObjectMetadataOidIndexId,
326 Anum_pg_largeobject_metadata_oid,
329 Anum_pg_largeobject_metadata_lomowner,
330 Anum_pg_largeobject_metadata_lomacl,
336 OperatorClassRelationId,
341 Anum_pg_opclass_opcname,
342 Anum_pg_opclass_opcnamespace,
343 Anum_pg_opclass_opcowner,
354 Anum_pg_operator_oid,
355 Anum_pg_operator_oprname,
356 Anum_pg_operator_oprnamespace,
357 Anum_pg_operator_oprowner,
364 OperatorFamilyRelationId,
368 Anum_pg_opfamily_oid,
369 Anum_pg_opfamily_opfname,
370 Anum_pg_opfamily_opfnamespace,
371 Anum_pg_opfamily_opfowner,
383 Anum_pg_authid_rolname,
396 Anum_pg_auth_members_oid,
399 Anum_pg_auth_members_grantor,
411 Anum_pg_rewrite_rulename,
424 Anum_pg_namespace_oid,
425 Anum_pg_namespace_nspname,
427 Anum_pg_namespace_nspowner,
428 Anum_pg_namespace_nspacl,
439 Anum_pg_class_relname,
440 Anum_pg_class_relnamespace,
441 Anum_pg_class_relowner,
442 Anum_pg_class_relacl,
448 TableSpaceRelationId,
449 TablespaceOidIndexId,
452 Anum_pg_tablespace_oid,
453 Anum_pg_tablespace_spcname,
455 Anum_pg_tablespace_spcowner,
456 Anum_pg_tablespace_spcacl,
466 Anum_pg_transform_oid
475 Anum_pg_trigger_tgname,
489 Anum_pg_policy_polname,
498 EventTriggerRelationId,
499 EventTriggerOidIndexId,
502 Anum_pg_event_trigger_oid,
503 Anum_pg_event_trigger_evtname,
505 Anum_pg_event_trigger_evtowner,
511 "text search configuration",
516 Anum_pg_ts_config_oid,
517 Anum_pg_ts_config_cfgname,
518 Anum_pg_ts_config_cfgnamespace,
519 Anum_pg_ts_config_cfgowner,
525 "text search dictionary",
526 TSDictionaryRelationId,
527 TSDictionaryOidIndexId,
531 Anum_pg_ts_dict_dictname,
532 Anum_pg_ts_dict_dictnamespace,
533 Anum_pg_ts_dict_dictowner,
539 "text search parser",
544 Anum_pg_ts_parser_oid,
545 Anum_pg_ts_parser_prsname,
546 Anum_pg_ts_parser_prsnamespace,
553 "text search template",
554 TSTemplateRelationId,
555 TSTemplateOidIndexId,
558 Anum_pg_ts_template_oid,
559 Anum_pg_ts_template_tmplname,
560 Anum_pg_ts_template_tmplnamespace,
573 Anum_pg_type_typname,
574 Anum_pg_type_typnamespace,
575 Anum_pg_type_typowner,
582 PublicationRelationId,
583 PublicationObjectIndexId,
586 Anum_pg_publication_oid,
587 Anum_pg_publication_pubname,
589 Anum_pg_publication_pubowner,
596 SubscriptionRelationId,
597 SubscriptionObjectIndexId,
600 Anum_pg_subscription_oid,
601 Anum_pg_subscription_subname,
603 Anum_pg_subscription_subowner,
609 "extended statistics",
610 StatisticExtRelationId,
611 StatisticExtOidIndexId,
614 Anum_pg_statistic_ext_oid,
615 Anum_pg_statistic_ext_stxname,
616 Anum_pg_statistic_ext_stxnamespace,
617 Anum_pg_statistic_ext_stxowner,
624 UserMappingRelationId,
625 UserMappingOidIndexId,
628 Anum_pg_user_mapping_oid,
687 "sequence column", -1
690 "toast table column", -1
696 "materialized view column", -1
699 "composite type column", -1
807 "role membership", -1
883 String *strval,
bool missing_ok);
886 LOCKMODE lockmode,
bool missing_ok);
891 LOCKMODE lockmode,
bool missing_ok);
896 TypeName *
typename,
bool missing_ok);
900 List *
object,
bool missing_ok);
918 int32 objectSubId,
bool missing_ok);
1004 &relation, lockmode,
1012 &relation, missing_ok);
1026 address.
classId = ConstraintRelationId;
1028 constrname, missing_ok);
1056 address.
classId = ProcedureRelationId;
1061 address.
classId = OperatorRelationId;
1066 address.
classId = CollationRelationId;
1071 address.
classId = ConversionRelationId;
1084 address.
classId = LargeObjectRelationId;
1091 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1092 errmsg(
"large object %u does not exist",
1105 address.
classId = CastRelationId;
1118 address.
classId = TransformRelationId;
1125 address.
classId = TSParserRelationId;
1130 address.
classId = TSDictionaryRelationId;
1135 address.
classId = TSTemplateRelationId;
1140 address.
classId = TSConfigRelationId;
1162 address.
classId = StatisticExtRelationId;
1171 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1193 if (old_address.
classId != RelationRelationId)
1210 if (address.
classId != RelationRelationId)
1242 old_address = address;
1272 relp, lockmode, missing_ok);
1281 String *strval,
bool missing_ok)
1292 address.
classId = AccessMethodRelationId;
1297 address.
classId = DatabaseRelationId;
1302 address.
classId = ExtensionRelationId;
1307 address.
classId = TableSpaceRelationId;
1312 address.
classId = AuthIdRelationId;
1317 address.
classId = NamespaceRelationId;
1322 address.
classId = LanguageRelationId;
1327 address.
classId = ForeignDataWrapperRelationId;
1332 address.
classId = ForeignServerRelationId;
1337 address.
classId = EventTriggerRelationId;
1342 address.
classId = ParameterAclRelationId;
1347 address.
classId = PublicationRelationId;
1352 address.
classId = SubscriptionRelationId;
1357 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1378 address.
classId = RelationRelationId;
1383 lockmode, missing_ok);
1390 if (relation->
rd_rel->relkind != RELKIND_INDEX &&
1391 relation->
rd_rel->relkind != RELKIND_PARTITIONED_INDEX)
1393 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1394 errmsg(
"\"%s\" is not an index",
1398 if (relation->
rd_rel->relkind != RELKIND_SEQUENCE)
1400 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1401 errmsg(
"\"%s\" is not a sequence",
1405 if (relation->
rd_rel->relkind != RELKIND_RELATION &&
1406 relation->
rd_rel->relkind != RELKIND_PARTITIONED_TABLE)
1408 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1409 errmsg(
"\"%s\" is not a table",
1413 if (relation->
rd_rel->relkind != RELKIND_VIEW)
1415 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1416 errmsg(
"\"%s\" is not a view",
1420 if (relation->
rd_rel->relkind != RELKIND_MATVIEW)
1422 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1423 errmsg(
"\"%s\" is not a materialized view",
1427 if (relation->
rd_rel->relkind != RELKIND_FOREIGN_TABLE)
1429 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1430 errmsg(
"\"%s\" is not a foreign table",
1434 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1459 const char *depname;
1470 (
errcode(ERRCODE_SYNTAX_ERROR),
1471 errmsg(
"must specify relation and object name")));
1484 address.
classId = RewriteRelationId;
1490 address.
classId = TriggerRelationId;
1496 address.
classId = ConstraintRelationId;
1503 address.
classId = PolicyRelationId;
1510 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1516 if (relation != NULL)
1546 (
errcode(ERRCODE_SYNTAX_ERROR),
1547 errmsg(
"column name must be qualified")));
1560 (
errcode(ERRCODE_UNDEFINED_COLUMN),
1561 errmsg(
"column \"%s\" of relation \"%s\" does not exist",
1564 address.
classId = RelationRelationId;
1571 address.
classId = RelationRelationId;
1599 (
errcode(ERRCODE_SYNTAX_ERROR),
1600 errmsg(
"column name must be qualified")));
1618 (
errcode(ERRCODE_UNDEFINED_COLUMN),
1619 errmsg(
"default value for column \"%s\" of relation \"%s\" does not exist",
1622 address.
classId = AttrDefaultRelationId;
1629 address.
classId = AttrDefaultRelationId;
1646 address.
classId = TypeRelationId;
1655 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1656 errmsg(
"type \"%s\" does not exist",
1666 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1667 errmsg(
"\"%s\" is not a domain",
1692 address.
classId = OperatorClassRelationId;
1697 address.
classId = OperatorFamilyRelationId;
1702 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1719 List *
object,
bool missing_ok)
1745 foreach(cell,
lsecond(
object))
1774 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1775 errmsg(
"operator %d (%s, %s) of %s does not exist",
1805 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1806 errmsg(
"function %d (%s, %s) of %s does not exist",
1820 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1846 if (strcmp(
username,
"public") == 0)
1856 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1857 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1871 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1872 errmsg(
"server \"%s\" does not exist", servername)));
1882 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1883 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1938 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1939 errmsg(
"publication relation \"%s\" in publication \"%s\" does not exist",
1980 Anum_pg_publication_namespace_oid,
1985 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1986 errmsg(
"publication schema \"%s\" in publication \"%s\" does not exist",
1987 schemaname, pubname)));
2026 case DEFACLOBJ_RELATION:
2027 objtype_str =
"tables";
2029 case DEFACLOBJ_SEQUENCE:
2030 objtype_str =
"sequences";
2032 case DEFACLOBJ_FUNCTION:
2033 objtype_str =
"functions";
2035 case DEFACLOBJ_TYPE:
2036 objtype_str =
"types";
2038 case DEFACLOBJ_NAMESPACE:
2039 objtype_str =
"schemas";
2043 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2044 errmsg(
"unrecognized default ACL object type \"%c\"", objtype),
2045 errhint(
"Valid object types are \"%c\", \"%c\", \"%c\", \"%c\", \"%c\".",
2050 DEFACLOBJ_NAMESPACE)));
2095 (
errcode(ERRCODE_UNDEFINED_OBJECT),
2096 errmsg(
"default ACL for user \"%s\" in schema \"%s\" on %s does not exist",
2100 (
errcode(ERRCODE_UNDEFINED_OBJECT),
2101 errmsg(
"default ACL for user \"%s\" on %s does not exist",
2122 for (
i = 0;
i < nelems;
i++)
2126 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2127 errmsg(
"name or argument lists may not contain nulls")));
2148 Node *objnode = NULL;
2160 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2161 errmsg(
"unsupported object type \"%s\"", ttype)));
2179 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2180 errmsg(
"name list length must be exactly %d", 1)));
2183 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2184 errmsg(
"name or argument lists may not contain nulls")));
2196 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2197 errmsg(
"name list length must be exactly %d", 1)));
2200 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2201 errmsg(
"large object OID may not be null")));
2209 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2210 errmsg(
"name list length must be at least %d", 1)));
2234 for (
i = 0;
i < nelems;
i++)
2238 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2239 errmsg(
"name or argument lists may not contain nulls")));
2261 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2262 errmsg(
"name list length must be exactly %d", 1)));
2272 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2273 errmsg(
"argument list length must be exactly %d", 1)));
2279 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2280 errmsg(
"name list length must be at least %d", 2)));
2286 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2287 errmsg(
"name list length must be at least %d", 3)));
2293 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2294 errmsg(
"argument list length must be exactly %d", 2)));
2345 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2346 errmsg(
"name list length must be exactly %d", 1)));
2351 objnode = (
Node *)
typename;
2382 objnode = (
Node *) owa;
2391 if (objnode == NULL)
2402 elog(
ERROR,
"return type must be a row type");
2454 elog(
ERROR,
"constraint with OID %u does not exist",
2507 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2508 errmsg(
"must be owner of large object %u",
2522 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2523 errmsg(
"must be owner of type %s or type %s",
2549 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2550 errmsg(
"permission denied"),
2551 errdetail(
"The current user must have the %s attribute.",
2558 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2559 errmsg(
"permission denied"),
2560 errdetail(
"The current user must have the %s attribute.",
2564 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2565 errmsg(
"permission denied"),
2566 errdetail(
"The current user must have the %s option on role \"%s\".",
2579 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2580 errmsg(
"must be superuser")));
2590 elog(
ERROR,
"unsupported object type: %d", (
int) objtype);
2615 cache =
property->oid_catcache_id;
2621 elog(
ERROR,
"cache lookup failed for cache %d oid %u",
2648 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2649 errmsg(
"unrecognized object type \"%s\"", objtype)));
2793 if (prop_last && prop_last->
class_oid == class_id)
2869 char **pubname,
char **nspname)
2879 elog(
ERROR,
"cache lookup failed for publication schema %u",
2895 Oid schemaid = pnform->pnnspid;
2900 elog(
ERROR,
"cache lookup failed for schema %u",
2996 elog(
ERROR,
"could not find tuple for cast %u",
3026 elog(
ERROR,
"cache lookup failed for collation %u",
3056 elog(
ERROR,
"cache lookup failed for constraint %u",
3095 elog(
ERROR,
"cache lookup failed for conversion %u",
3124 elog(
ERROR,
"could not find tuple for attrdef %u",
3159 if (oprname == NULL)
3179 elog(
ERROR,
"cache lookup failed for opclass %u",
3189 elog(
ERROR,
"cache lookup failed for access method %u",
3190 opcForm->opcmethod);
3222 elog(
ERROR,
"cache lookup failed for access method %u",
3242 amopDesc =
table_open(AccessMethodOperatorRelationId,
3258 elog(
ERROR,
"could not find tuple for amop entry %u",
3277 amopForm->amopstrategy,
3299 amprocDesc =
table_open(AccessMethodProcedureRelationId,
3315 elog(
ERROR,
"could not find tuple for amproc entry %u",
3334 amprocForm->amprocnum,
3359 Anum_pg_rewrite_oid,
3371 elog(
ERROR,
"could not find tuple for rule %u",
3405 Anum_pg_trigger_oid,
3417 elog(
ERROR,
"could not find tuple for trigger %u",
3447 elog(
ERROR,
"cache lookup failed for namespace %u",
3466 elog(
ERROR,
"could not find tuple for statistics object %u",
3498 elog(
ERROR,
"cache lookup failed for text search parser %u",
3528 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
3543 NameStr(dictForm->dictname)));
3559 elog(
ERROR,
"cache lookup failed for text search template %u",
3574 NameStr(tmplForm->tmplname)));
3590 elog(
ERROR,
"cache lookup failed for text search configuration %u",
3631 Anum_pg_auth_members_oid,
3643 elog(
ERROR,
"could not find tuple for role membership %u",
3670 elog(
ERROR,
"cache lookup failed for database %u",
3686 elog(
ERROR,
"cache lookup failed for tablespace %u",
3728 elog(
ERROR,
"cache lookup failed for user mapping %u",
3734 useid = umform->umuser;
3762 Anum_pg_default_acl_oid,
3767 true, NULL, 1, skey);
3774 elog(
ERROR,
"could not find tuple for default ACL %u",
3791 switch (defacl->defaclobjtype)
3793 case DEFACLOBJ_RELATION:
3796 _(
"default privileges on new relations belonging to role %s in schema %s"),
3800 _(
"default privileges on new relations belonging to role %s"),
3803 case DEFACLOBJ_SEQUENCE:
3806 _(
"default privileges on new sequences belonging to role %s in schema %s"),
3810 _(
"default privileges on new sequences belonging to role %s"),
3813 case DEFACLOBJ_FUNCTION:
3816 _(
"default privileges on new functions belonging to role %s in schema %s"),
3820 _(
"default privileges on new functions belonging to role %s"),
3823 case DEFACLOBJ_TYPE:
3826 _(
"default privileges on new types belonging to role %s in schema %s"),
3830 _(
"default privileges on new types belonging to role %s"),
3833 case DEFACLOBJ_NAMESPACE:
3836 _(
"default privileges on new schemas belonging to role %s"),
3843 _(
"default privileges belonging to role %s in schema %s"),
3847 _(
"default privileges belonging to role %s"),
3865 elog(
ERROR,
"cache lookup failed for extension %u",
3882 elog(
ERROR,
"cache lookup failed for event trigger %u",
3903 elog(
ERROR,
"cache lookup failed for parameter ACL %u",
3908 Anum_pg_parameter_acl_parname);
3932 true, NULL, 1, skey);
3939 elog(
ERROR,
"could not find tuple for policy %u",
3977 &pubname, &nspname))
3999 elog(
ERROR,
"cache lookup failed for publication table %u",
4038 elog(
ERROR,
"could not find tuple for transform %u",
4060 if (buffer.
len == 0)
4099 elog(
ERROR,
"cache lookup failed for relation %u", relid);
4112 switch (relForm->relkind)
4114 case RELKIND_RELATION:
4115 case RELKIND_PARTITIONED_TABLE:
4120 case RELKIND_PARTITIONED_INDEX:
4124 case RELKIND_SEQUENCE:
4128 case RELKIND_TOASTVALUE:
4136 case RELKIND_MATVIEW:
4140 case RELKIND_COMPOSITE_TYPE:
4144 case RELKIND_FOREIGN_TABLE:
4174 elog(
ERROR,
"cache lookup failed for opfamily %u", opfid);
4181 elog(
ERROR,
"cache lookup failed for access method %u",
4182 opfForm->opfmethod);
4222 if (description == NULL)
4238 const char *objname = NULL;
4251 elog(
ERROR,
"return type must be a row type");
4273 elog(
ERROR,
"invalid null namespace in object %u/%u/%d",
4291 elog(
ERROR,
"invalid null name in object %u/%u/%d",
4323 if (objname && objidentity)
4368 elog(
ERROR,
"return type must be a row type");
4376 if (identity == NULL)
4615 elog(
ERROR,
"cache lookup failed for relation %u", relid);
4623 switch (relForm->relkind)
4625 case RELKIND_RELATION:
4626 case RELKIND_PARTITIONED_TABLE:
4630 case RELKIND_PARTITIONED_INDEX:
4633 case RELKIND_SEQUENCE:
4636 case RELKIND_TOASTVALUE:
4642 case RELKIND_MATVIEW:
4645 case RELKIND_COMPOSITE_TYPE:
4648 case RELKIND_FOREIGN_TABLE:
4657 if (objectSubId != 0)
4679 elog(
ERROR,
"cache lookup failed for constraint %u", constroid);
4695 elog(
ERROR,
"invalid constraint %u", constrForm->oid);
4715 elog(
ERROR,
"cache lookup failed for procedure %u", procid);
4723 if (procForm->prokind == PROKIND_AGGREGATE)
4725 else if (procForm->prokind == PROKIND_PROCEDURE)
4793 if (missing_ok && attr == NULL)
4799 if (objname && *objname ==
NIL)
4807 *objname =
lappend(*objname, attr);
4835 if (typeout == NULL)
4858 elog(
ERROR,
"could not find tuple for cast %u",
4892 elog(
ERROR,
"cache lookup failed for collation %u",
4918 elog(
ERROR,
"cache lookup failed for constraint %u",
4938 domain.
classId = TypeRelationId;
4966 elog(
ERROR,
"cache lookup failed for conversion %u",
4991 elog(
ERROR,
"could not find tuple for attrdef %u",
5013 elog(
ERROR,
"cache lookup failed for language %u",
5040 if (oprname == NULL)
5062 elog(
ERROR,
"cache lookup failed for opclass %u",
5072 elog(
ERROR,
"cache lookup failed for access method %u",
5073 opcForm->opcmethod);
5103 elog(
ERROR,
"cache lookup failed for access method %u",
5124 amopDesc =
table_open(AccessMethodOperatorRelationId,
5140 elog(
ERROR,
"could not find tuple for amop entry %u",
5160 psprintf(
"%d", amopForm->amopstrategy));
5165 amopForm->amopstrategy,
5166 ltype, rtype, opfam.
data);
5186 amprocDesc =
table_open(AccessMethodProcedureRelationId,
5202 elog(
ERROR,
"could not find tuple for amproc entry %u",
5222 psprintf(
"%d", amprocForm->amprocnum));
5227 amprocForm->amprocnum,
5228 ltype, rtype, opfam.
data);
5251 elog(
ERROR,
"could not find tuple for rule %u",
5284 elog(
ERROR,
"could not find tuple for trigger %u",
5311 elog(
ERROR,
"cache lookup failed for namespace %u",
5333 elog(
ERROR,
"cache lookup failed for statistics object %u",
5341 NameStr(formStatistic->stxname)));
5360 elog(
ERROR,
"cache lookup failed for text search parser %u",
5368 NameStr(formParser->prsname)));
5387 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
5395 NameStr(formDict->dictname)));
5414 elog(
ERROR,
"cache lookup failed for text search template %u",
5422 NameStr(formTmpl->tmplname)));
5441 elog(
ERROR,
"cache lookup failed for text search configuration %u",
5483 Anum_pg_auth_members_oid,
5495 elog(
ERROR,
"could not find tuple for pg_auth_members entry %u",
5522 elog(
ERROR,
"cache lookup failed for database %u",
5541 elog(
ERROR,
"cache lookup failed for tablespace %u",