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,
481 Anum_pg_trigger_tgname,
495 Anum_pg_policy_polname,
504 EventTriggerRelationId,
505 EventTriggerOidIndexId,
508 Anum_pg_event_trigger_oid,
509 Anum_pg_event_trigger_evtname,
511 Anum_pg_event_trigger_evtowner,
517 "text search configuration",
522 Anum_pg_ts_config_oid,
523 Anum_pg_ts_config_cfgname,
524 Anum_pg_ts_config_cfgnamespace,
525 Anum_pg_ts_config_cfgowner,
531 "text search dictionary",
532 TSDictionaryRelationId,
533 TSDictionaryOidIndexId,
537 Anum_pg_ts_dict_dictname,
538 Anum_pg_ts_dict_dictnamespace,
539 Anum_pg_ts_dict_dictowner,
545 "text search parser",
550 Anum_pg_ts_parser_oid,
551 Anum_pg_ts_parser_prsname,
552 Anum_pg_ts_parser_prsnamespace,
559 "text search template",
560 TSTemplateRelationId,
561 TSTemplateOidIndexId,
564 Anum_pg_ts_template_oid,
565 Anum_pg_ts_template_tmplname,
566 Anum_pg_ts_template_tmplnamespace,
579 Anum_pg_type_typname,
580 Anum_pg_type_typnamespace,
581 Anum_pg_type_typowner,
588 PublicationRelationId,
589 PublicationObjectIndexId,
592 Anum_pg_publication_oid,
593 Anum_pg_publication_pubname,
595 Anum_pg_publication_pubowner,
602 SubscriptionRelationId,
603 SubscriptionObjectIndexId,
606 Anum_pg_subscription_oid,
607 Anum_pg_subscription_subname,
609 Anum_pg_subscription_subowner,
615 "extended statistics",
616 StatisticExtRelationId,
617 StatisticExtOidIndexId,
620 Anum_pg_statistic_ext_oid,
621 Anum_pg_statistic_ext_stxname,
622 Anum_pg_statistic_ext_stxnamespace,
623 Anum_pg_statistic_ext_stxowner,
630 UserMappingRelationId,
631 UserMappingOidIndexId,
634 Anum_pg_user_mapping_oid,
693 "sequence column", -1
696 "toast table column", -1
702 "materialized view column", -1
705 "composite type column", -1
813 "role membership", -1
889 String *strval,
bool missing_ok);
892 LOCKMODE lockmode,
bool missing_ok);
897 LOCKMODE lockmode,
bool missing_ok);
902 TypeName *
typename,
bool missing_ok);
906 List *
object,
bool missing_ok);
924 int32 objectSubId,
bool missing_ok);
1004 &relation, lockmode,
1010 &relation, lockmode,
1018 &relation, missing_ok);
1032 address.
classId = ConstraintRelationId;
1034 constrname, missing_ok);
1062 address.
classId = ProcedureRelationId;
1067 address.
classId = OperatorRelationId;
1072 address.
classId = CollationRelationId;
1077 address.
classId = ConversionRelationId;
1090 address.
classId = LargeObjectRelationId;
1097 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1098 errmsg(
"large object %u does not exist",
1111 address.
classId = CastRelationId;
1124 address.
classId = TransformRelationId;
1131 address.
classId = TSParserRelationId;
1136 address.
classId = TSDictionaryRelationId;
1141 address.
classId = TSTemplateRelationId;
1146 address.
classId = TSConfigRelationId;
1168 address.
classId = StatisticExtRelationId;
1177 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1199 if (old_address.
classId != RelationRelationId)
1216 if (address.
classId != RelationRelationId)
1248 old_address = address;
1278 relp, lockmode, missing_ok);
1287 String *strval,
bool missing_ok)
1298 address.
classId = AccessMethodRelationId;
1303 address.
classId = DatabaseRelationId;
1308 address.
classId = ExtensionRelationId;
1313 address.
classId = TableSpaceRelationId;
1318 address.
classId = AuthIdRelationId;
1323 address.
classId = NamespaceRelationId;
1328 address.
classId = LanguageRelationId;
1333 address.
classId = ForeignDataWrapperRelationId;
1338 address.
classId = ForeignServerRelationId;
1343 address.
classId = EventTriggerRelationId;
1348 address.
classId = ParameterAclRelationId;
1353 address.
classId = PublicationRelationId;
1358 address.
classId = SubscriptionRelationId;
1363 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1384 address.
classId = RelationRelationId;
1389 lockmode, missing_ok);
1396 if (relation->
rd_rel->relkind != RELKIND_INDEX &&
1397 relation->
rd_rel->relkind != RELKIND_PARTITIONED_INDEX)
1399 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1400 errmsg(
"\"%s\" is not an index",
1404 if (relation->
rd_rel->relkind != RELKIND_SEQUENCE)
1406 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1407 errmsg(
"\"%s\" is not a sequence",
1411 if (relation->
rd_rel->relkind != RELKIND_RELATION &&
1412 relation->
rd_rel->relkind != RELKIND_PARTITIONED_TABLE)
1414 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1415 errmsg(
"\"%s\" is not a table",
1419 if (relation->
rd_rel->relkind != RELKIND_VIEW)
1421 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1422 errmsg(
"\"%s\" is not a view",
1426 if (relation->
rd_rel->relkind != RELKIND_MATVIEW)
1428 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1429 errmsg(
"\"%s\" is not a materialized view",
1433 if (relation->
rd_rel->relkind != RELKIND_FOREIGN_TABLE)
1435 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1436 errmsg(
"\"%s\" is not a foreign table",
1440 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1465 const char *depname;
1476 (
errcode(ERRCODE_SYNTAX_ERROR),
1477 errmsg(
"must specify relation and object name")));
1490 address.
classId = RewriteRelationId;
1496 address.
classId = TriggerRelationId;
1502 address.
classId = ConstraintRelationId;
1509 address.
classId = PolicyRelationId;
1516 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1522 if (relation != NULL)
1552 (
errcode(ERRCODE_SYNTAX_ERROR),
1553 errmsg(
"column name must be qualified")));
1566 (
errcode(ERRCODE_UNDEFINED_COLUMN),
1567 errmsg(
"column \"%s\" of relation \"%s\" does not exist",
1570 address.
classId = RelationRelationId;
1577 address.
classId = RelationRelationId;
1605 (
errcode(ERRCODE_SYNTAX_ERROR),
1606 errmsg(
"column name must be qualified")));
1624 (
errcode(ERRCODE_UNDEFINED_COLUMN),
1625 errmsg(
"default value for column \"%s\" of relation \"%s\" does not exist",
1628 address.
classId = AttrDefaultRelationId;
1635 address.
classId = AttrDefaultRelationId;
1652 address.
classId = TypeRelationId;
1661 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1662 errmsg(
"type \"%s\" does not exist",
1672 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1673 errmsg(
"\"%s\" is not a domain",
1698 address.
classId = OperatorClassRelationId;
1703 address.
classId = OperatorFamilyRelationId;
1708 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1725 List *
object,
bool missing_ok)
1751 foreach(cell,
lsecond(
object))
1780 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1781 errmsg(
"operator %d (%s, %s) of %s does not exist",
1811 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1812 errmsg(
"function %d (%s, %s) of %s does not exist",
1826 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1852 if (strcmp(
username,
"public") == 0)
1862 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1863 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1877 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1878 errmsg(
"server \"%s\" does not exist", servername)));
1888 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1889 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1944 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1945 errmsg(
"publication relation \"%s\" in publication \"%s\" does not exist",
1986 Anum_pg_publication_namespace_oid,
1991 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1992 errmsg(
"publication schema \"%s\" in publication \"%s\" does not exist",
1993 schemaname, pubname)));
2032 case DEFACLOBJ_RELATION:
2033 objtype_str =
"tables";
2035 case DEFACLOBJ_SEQUENCE:
2036 objtype_str =
"sequences";
2038 case DEFACLOBJ_FUNCTION:
2039 objtype_str =
"functions";
2041 case DEFACLOBJ_TYPE:
2042 objtype_str =
"types";
2044 case DEFACLOBJ_NAMESPACE:
2045 objtype_str =
"schemas";
2049 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2050 errmsg(
"unrecognized default ACL object type \"%c\"", objtype),
2051 errhint(
"Valid object types are \"%c\", \"%c\", \"%c\", \"%c\", \"%c\".",
2056 DEFACLOBJ_NAMESPACE)));
2101 (
errcode(ERRCODE_UNDEFINED_OBJECT),
2102 errmsg(
"default ACL for user \"%s\" in schema \"%s\" on %s does not exist",
2106 (
errcode(ERRCODE_UNDEFINED_OBJECT),
2107 errmsg(
"default ACL for user \"%s\" on %s does not exist",
2128 for (
i = 0;
i < nelems;
i++)
2132 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2133 errmsg(
"name or argument lists may not contain nulls")));
2154 Node *objnode = NULL;
2166 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2167 errmsg(
"unsupported object type \"%s\"", ttype)));
2185 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2186 errmsg(
"name list length must be exactly %d", 1)));
2189 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2190 errmsg(
"name or argument lists may not contain nulls")));
2202 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2203 errmsg(
"name list length must be exactly %d", 1)));
2206 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2207 errmsg(
"large object OID may not be null")));
2215 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2216 errmsg(
"name list length must be at least %d", 1)));
2240 for (
i = 0;
i < nelems;
i++)
2244 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2245 errmsg(
"name or argument lists may not contain nulls")));
2267 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2268 errmsg(
"name list length must be exactly %d", 1)));
2278 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2279 errmsg(
"argument list length must be exactly %d", 1)));
2285 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2286 errmsg(
"name list length must be at least %d", 2)));
2292 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2293 errmsg(
"name list length must be at least %d", 3)));
2299 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2300 errmsg(
"argument list length must be exactly %d", 2)));
2351 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2352 errmsg(
"name list length must be exactly %d", 1)));
2357 objnode = (
Node *)
typename;
2388 objnode = (
Node *) owa;
2397 if (objnode == NULL)
2408 elog(
ERROR,
"return type must be a row type");
2460 elog(
ERROR,
"constraint with OID %u does not exist",
2513 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2514 errmsg(
"must be owner of large object %u",
2528 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2529 errmsg(
"must be owner of type %s or type %s",
2555 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2556 errmsg(
"permission denied"),
2557 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 attribute.",
2570 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2571 errmsg(
"permission denied"),
2572 errdetail(
"The current user must have the %s option on role \"%s\".",
2585 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2586 errmsg(
"must be superuser")));
2596 elog(
ERROR,
"unsupported object type: %d", (
int) objtype);
2621 cache =
property->oid_catcache_id;
2627 elog(
ERROR,
"cache lookup failed for cache %d oid %u",
2654 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2655 errmsg(
"unrecognized object type \"%s\"", objtype)));
2799 if (prop_last && prop_last->
class_oid == class_id)
2875 char **pubname,
char **nspname)
2885 elog(
ERROR,
"cache lookup failed for publication schema %u",
2901 Oid schemaid = pnform->pnnspid;
2906 elog(
ERROR,
"cache lookup failed for schema %u",
3002 elog(
ERROR,
"could not find tuple for cast %u",
3032 elog(
ERROR,
"cache lookup failed for collation %u",
3062 elog(
ERROR,
"cache lookup failed for constraint %u",
3101 elog(
ERROR,
"cache lookup failed for conversion %u",
3130 elog(
ERROR,
"could not find tuple for attrdef %u",
3165 if (oprname == NULL)
3185 elog(
ERROR,
"cache lookup failed for opclass %u",
3195 elog(
ERROR,
"cache lookup failed for access method %u",
3196 opcForm->opcmethod);
3228 elog(
ERROR,
"cache lookup failed for access method %u",
3248 amopDesc =
table_open(AccessMethodOperatorRelationId,
3264 elog(
ERROR,
"could not find tuple for amop entry %u",
3283 amopForm->amopstrategy,
3305 amprocDesc =
table_open(AccessMethodProcedureRelationId,
3321 elog(
ERROR,
"could not find tuple for amproc entry %u",
3340 amprocForm->amprocnum,
3365 Anum_pg_rewrite_oid,
3377 elog(
ERROR,
"could not find tuple for rule %u",
3411 Anum_pg_trigger_oid,
3423 elog(
ERROR,
"could not find tuple for trigger %u",
3453 elog(
ERROR,
"cache lookup failed for namespace %u",
3472 elog(
ERROR,
"could not find tuple for statistics object %u",
3504 elog(
ERROR,
"cache lookup failed for text search parser %u",
3534 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
3549 NameStr(dictForm->dictname)));
3565 elog(
ERROR,
"cache lookup failed for text search template %u",
3580 NameStr(tmplForm->tmplname)));
3596 elog(
ERROR,
"cache lookup failed for text search configuration %u",
3637 Anum_pg_auth_members_oid,
3649 elog(
ERROR,
"could not find tuple for role membership %u",
3676 elog(
ERROR,
"cache lookup failed for database %u",
3692 elog(
ERROR,
"cache lookup failed for tablespace %u",
3734 elog(
ERROR,
"cache lookup failed for user mapping %u",
3740 useid = umform->umuser;
3768 Anum_pg_default_acl_oid,
3773 true, NULL, 1, skey);
3780 elog(
ERROR,
"could not find tuple for default ACL %u",
3797 switch (defacl->defaclobjtype)
3799 case DEFACLOBJ_RELATION:
3802 _(
"default privileges on new relations belonging to role %s in schema %s"),
3806 _(
"default privileges on new relations belonging to role %s"),
3809 case DEFACLOBJ_SEQUENCE:
3812 _(
"default privileges on new sequences belonging to role %s in schema %s"),
3816 _(
"default privileges on new sequences belonging to role %s"),
3819 case DEFACLOBJ_FUNCTION:
3822 _(
"default privileges on new functions belonging to role %s in schema %s"),
3826 _(
"default privileges on new functions belonging to role %s"),
3829 case DEFACLOBJ_TYPE:
3832 _(
"default privileges on new types belonging to role %s in schema %s"),
3836 _(
"default privileges on new types belonging to role %s"),
3839 case DEFACLOBJ_NAMESPACE:
3842 _(
"default privileges on new schemas belonging to role %s"),
3849 _(
"default privileges belonging to role %s in schema %s"),
3853 _(
"default privileges belonging to role %s"),
3871 elog(
ERROR,
"cache lookup failed for extension %u",
3888 elog(
ERROR,
"cache lookup failed for event trigger %u",
3909 elog(
ERROR,
"cache lookup failed for parameter ACL %u",
3914 Anum_pg_parameter_acl_parname);
3938 true, NULL, 1, skey);
3945 elog(
ERROR,
"could not find tuple for policy %u",
3983 &pubname, &nspname))
4005 elog(
ERROR,
"cache lookup failed for publication table %u",
4044 elog(
ERROR,
"could not find tuple for transform %u",
4066 if (buffer.
len == 0)
4105 elog(
ERROR,
"cache lookup failed for relation %u", relid);
4118 switch (relForm->relkind)
4120 case RELKIND_RELATION:
4121 case RELKIND_PARTITIONED_TABLE:
4126 case RELKIND_PARTITIONED_INDEX:
4130 case RELKIND_SEQUENCE:
4134 case RELKIND_TOASTVALUE:
4142 case RELKIND_MATVIEW:
4146 case RELKIND_COMPOSITE_TYPE:
4150 case RELKIND_FOREIGN_TABLE:
4180 elog(
ERROR,
"cache lookup failed for opfamily %u", opfid);
4187 elog(
ERROR,
"cache lookup failed for access method %u",
4188 opfForm->opfmethod);
4244 const char *objname = NULL;
4257 elog(
ERROR,
"return type must be a row type");
4279 elog(
ERROR,
"invalid null namespace in object %u/%u/%d",
4297 elog(
ERROR,
"invalid null name in object %u/%u/%d",
4329 if (objname && objidentity)
4374 elog(
ERROR,
"return type must be a row type");
4382 if (identity == NULL)
4621 elog(
ERROR,
"cache lookup failed for relation %u", relid);
4629 switch (relForm->relkind)
4631 case RELKIND_RELATION:
4632 case RELKIND_PARTITIONED_TABLE:
4636 case RELKIND_PARTITIONED_INDEX:
4639 case RELKIND_SEQUENCE:
4642 case RELKIND_TOASTVALUE:
4648 case RELKIND_MATVIEW:
4651 case RELKIND_COMPOSITE_TYPE:
4654 case RELKIND_FOREIGN_TABLE:
4663 if (objectSubId != 0)
4685 elog(
ERROR,
"cache lookup failed for constraint %u", constroid);
4701 elog(
ERROR,
"invalid constraint %u", constrForm->oid);
4721 elog(
ERROR,
"cache lookup failed for procedure %u", procid);
4729 if (procForm->prokind == PROKIND_AGGREGATE)
4731 else if (procForm->prokind == PROKIND_PROCEDURE)
4799 if (missing_ok && attr == NULL)
4805 if (objname && *objname ==
NIL)
4813 *objname =
lappend(*objname, attr);
4841 if (typeout == NULL)
4864 elog(
ERROR,
"could not find tuple for cast %u",
4898 elog(
ERROR,
"cache lookup failed for collation %u",
4924 elog(
ERROR,
"cache lookup failed for constraint %u",
4944 domain.
classId = TypeRelationId;
4972 elog(
ERROR,
"cache lookup failed for conversion %u",
4997 elog(
ERROR,
"could not find tuple for attrdef %u",
5019 elog(
ERROR,
"cache lookup failed for language %u",
5046 if (oprname == NULL)
5068 elog(
ERROR,
"cache lookup failed for opclass %u",
5078 elog(
ERROR,
"cache lookup failed for access method %u",
5079 opcForm->opcmethod);
5109 elog(
ERROR,
"cache lookup failed for access method %u",
5130 amopDesc =
table_open(AccessMethodOperatorRelationId,
5146 elog(
ERROR,
"could not find tuple for amop entry %u",
5166 psprintf(
"%d", amopForm->amopstrategy));
5171 amopForm->amopstrategy,
5172 ltype, rtype, opfam.
data);
5192 amprocDesc =
table_open(AccessMethodProcedureRelationId,
5208 elog(
ERROR,
"could not find tuple for amproc entry %u",
5228 psprintf(
"%d", amprocForm->amprocnum));
5233 amprocForm->amprocnum,
5234 ltype, rtype, opfam.
data);
5257 elog(
ERROR,
"could not find tuple for rule %u",
5290 elog(
ERROR,
"could not find tuple for trigger %u",
5317 elog(
ERROR,
"cache lookup failed for namespace %u",
5339 elog(
ERROR,
"cache lookup failed for statistics object %u",
5347 NameStr(formStatistic->stxname)));
5366 elog(
ERROR,
"cache lookup failed for text search parser %u",
5374 NameStr(formParser->prsname)));
5393 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
5401 NameStr(formDict->dictname)));
5420 elog(
ERROR,
"cache lookup failed for text search template %u",
5428 NameStr(formTmpl->tmplname)));
5447 elog(
ERROR,
"cache lookup failed for text search configuration %u",
5489 Anum_pg_auth_members_oid,
5501 elog(
ERROR,
"could not find tuple for pg_auth_members entry %u",
5528 elog(
ERROR,
"cache lookup failed for database %u",
5547 elog(
ERROR,
"cache lookup failed for tablespace %u",