85 #include "utils/fmgroids.h" 122 AccessMethodRelationId,
135 "access method operator",
136 AccessMethodOperatorRelationId,
149 "access method procedure",
150 AccessMethodProcedureRelationId,
182 Anum_pg_collation_oid,
183 Anum_pg_collation_collname,
184 Anum_pg_collation_collnamespace,
185 Anum_pg_collation_collowner,
192 ConstraintRelationId,
196 Anum_pg_constraint_oid,
197 Anum_pg_constraint_conname,
198 Anum_pg_constraint_connamespace,
206 ConversionRelationId,
210 Anum_pg_conversion_oid,
211 Anum_pg_conversion_conname,
212 Anum_pg_conversion_connamespace,
213 Anum_pg_conversion_conowner,
224 Anum_pg_database_oid,
225 Anum_pg_database_datname,
227 Anum_pg_database_datdba,
228 Anum_pg_database_datacl,
234 DefaultAclRelationId,
238 Anum_pg_default_acl_oid,
252 Anum_pg_extension_oid,
253 Anum_pg_extension_extname,
255 Anum_pg_extension_extowner,
261 "foreign-data wrapper",
262 ForeignDataWrapperRelationId,
266 Anum_pg_foreign_data_wrapper_oid,
267 Anum_pg_foreign_data_wrapper_fdwname,
269 Anum_pg_foreign_data_wrapper_fdwowner,
270 Anum_pg_foreign_data_wrapper_fdwacl,
276 ForeignServerRelationId,
280 Anum_pg_foreign_server_oid,
281 Anum_pg_foreign_server_srvname,
283 Anum_pg_foreign_server_srvowner,
284 Anum_pg_foreign_server_srvacl,
295 Anum_pg_proc_proname,
296 Anum_pg_proc_pronamespace,
297 Anum_pg_proc_proowner,
308 Anum_pg_language_oid,
309 Anum_pg_language_lanname,
311 Anum_pg_language_lanowner,
312 Anum_pg_language_lanacl,
317 "large object metadata",
318 LargeObjectMetadataRelationId,
322 Anum_pg_largeobject_metadata_oid,
325 Anum_pg_largeobject_metadata_lomowner,
326 Anum_pg_largeobject_metadata_lomacl,
332 OperatorClassRelationId,
337 Anum_pg_opclass_opcname,
338 Anum_pg_opclass_opcnamespace,
339 Anum_pg_opclass_opcowner,
350 Anum_pg_operator_oid,
351 Anum_pg_operator_oprname,
352 Anum_pg_operator_oprnamespace,
353 Anum_pg_operator_oprowner,
360 OperatorFamilyRelationId,
364 Anum_pg_opfamily_oid,
365 Anum_pg_opfamily_opfname,
366 Anum_pg_opfamily_opfnamespace,
367 Anum_pg_opfamily_opfowner,
379 Anum_pg_authid_rolname,
393 Anum_pg_rewrite_rulename,
406 Anum_pg_namespace_oid,
407 Anum_pg_namespace_nspname,
409 Anum_pg_namespace_nspowner,
410 Anum_pg_namespace_nspacl,
421 Anum_pg_class_relname,
422 Anum_pg_class_relnamespace,
423 Anum_pg_class_relowner,
424 Anum_pg_class_relacl,
430 TableSpaceRelationId,
434 Anum_pg_tablespace_oid,
435 Anum_pg_tablespace_spcname,
437 Anum_pg_tablespace_spcowner,
438 Anum_pg_tablespace_spcacl,
448 Anum_pg_transform_oid
457 Anum_pg_trigger_tgname,
471 Anum_pg_policy_polname,
480 EventTriggerRelationId,
484 Anum_pg_event_trigger_oid,
485 Anum_pg_event_trigger_evtname,
487 Anum_pg_event_trigger_evtowner,
493 "text search configuration",
498 Anum_pg_ts_config_oid,
499 Anum_pg_ts_config_cfgname,
500 Anum_pg_ts_config_cfgnamespace,
501 Anum_pg_ts_config_cfgowner,
507 "text search dictionary",
508 TSDictionaryRelationId,
513 Anum_pg_ts_dict_dictname,
514 Anum_pg_ts_dict_dictnamespace,
515 Anum_pg_ts_dict_dictowner,
521 "text search parser",
526 Anum_pg_ts_parser_oid,
527 Anum_pg_ts_parser_prsname,
528 Anum_pg_ts_parser_prsnamespace,
535 "text search template",
536 TSTemplateRelationId,
540 Anum_pg_ts_template_oid,
541 Anum_pg_ts_template_tmplname,
542 Anum_pg_ts_template_tmplnamespace,
555 Anum_pg_type_typname,
556 Anum_pg_type_typnamespace,
557 Anum_pg_type_typowner,
564 PublicationRelationId,
568 Anum_pg_publication_oid,
569 Anum_pg_publication_pubname,
571 Anum_pg_publication_pubowner,
578 SubscriptionRelationId,
582 Anum_pg_subscription_oid,
583 Anum_pg_subscription_subname,
585 Anum_pg_subscription_subowner,
591 "extended statistics",
592 StatisticExtRelationId,
596 Anum_pg_statistic_ext_oid,
597 Anum_pg_statistic_ext_stxname,
598 Anum_pg_statistic_ext_stxnamespace,
599 Anum_pg_statistic_ext_stxowner,
606 UserMappingRelationId,
610 Anum_pg_user_mapping_oid,
669 "sequence column", -1
672 "toast table column", -1
678 "materialized view column", -1
681 "composite type column", -1
853 Value *strval,
bool missing_ok);
856 LOCKMODE lockmode,
bool missing_ok);
861 LOCKMODE lockmode,
bool missing_ok);
866 TypeName *
typename,
bool missing_ok);
870 List *
object,
bool missing_ok);
886 int32 objectSubId,
bool missing_ok);
979 &relation, missing_ok);
993 address.
classId = ConstraintRelationId;
995 constrname, missing_ok);
1013 (
Value *)
object, missing_ok);
1023 address.
classId = ProcedureRelationId;
1028 address.
classId = OperatorRelationId;
1033 address.
classId = CollationRelationId;
1038 address.
classId = ConversionRelationId;
1051 address.
classId = LargeObjectRelationId;
1058 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1059 errmsg(
"large object %u does not exist",
1072 address.
classId = CastRelationId;
1085 address.
classId = TransformRelationId;
1092 address.
classId = TSParserRelationId;
1097 address.
classId = TSDictionaryRelationId;
1102 address.
classId = TSTemplateRelationId;
1107 address.
classId = TSConfigRelationId;
1125 address.
classId = StatisticExtRelationId;
1131 elog(
ERROR,
"unrecognized objtype: %d", (
int) objtype);
1158 if (old_address.
classId != RelationRelationId)
1175 if (address.
classId != RelationRelationId)
1207 old_address = address;
1237 relp, lockmode, missing_ok);
1246 Value *strval,
bool missing_ok)
1257 address.
classId = AccessMethodRelationId;
1262 address.
classId = DatabaseRelationId;
1267 address.
classId = ExtensionRelationId;
1272 address.
classId = TableSpaceRelationId;
1277 address.
classId = AuthIdRelationId;
1282 address.
classId = NamespaceRelationId;
1287 address.
classId = LanguageRelationId;
1292 address.
classId = ForeignDataWrapperRelationId;
1297 address.
classId = ForeignServerRelationId;
1302 address.
classId = EventTriggerRelationId;
1307 address.
classId = PublicationRelationId;
1312 address.
classId = SubscriptionRelationId;
1317 elog(
ERROR,
"unrecognized objtype: %d", (
int) objtype);
1338 address.
classId = RelationRelationId;
1343 lockmode, missing_ok);
1350 if (relation->
rd_rel->relkind != RELKIND_INDEX &&
1351 relation->
rd_rel->relkind != RELKIND_PARTITIONED_INDEX)
1353 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1354 errmsg(
"\"%s\" is not an index",
1358 if (relation->
rd_rel->relkind != RELKIND_SEQUENCE)
1360 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1361 errmsg(
"\"%s\" is not a sequence",
1365 if (relation->
rd_rel->relkind != RELKIND_RELATION &&
1366 relation->
rd_rel->relkind != RELKIND_PARTITIONED_TABLE)
1368 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1369 errmsg(
"\"%s\" is not a table",
1373 if (relation->
rd_rel->relkind != RELKIND_VIEW)
1375 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1376 errmsg(
"\"%s\" is not a view",
1380 if (relation->
rd_rel->relkind != RELKIND_MATVIEW)
1382 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1383 errmsg(
"\"%s\" is not a materialized view",
1387 if (relation->
rd_rel->relkind != RELKIND_FOREIGN_TABLE)
1389 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1390 errmsg(
"\"%s\" is not a foreign table",
1394 elog(
ERROR,
"unrecognized objtype: %d", (
int) objtype);
1419 const char *depname;
1430 (
errcode(ERRCODE_SYNTAX_ERROR),
1431 errmsg(
"must specify relation and object name")));
1444 address.
classId = RewriteRelationId;
1450 address.
classId = TriggerRelationId;
1456 address.
classId = ConstraintRelationId;
1463 address.
classId = PolicyRelationId;
1470 elog(
ERROR,
"unrecognized objtype: %d", (
int) objtype);
1476 if (relation != NULL)
1506 (
errcode(ERRCODE_SYNTAX_ERROR),
1507 errmsg(
"column name must be qualified")));
1520 (
errcode(ERRCODE_UNDEFINED_COLUMN),
1521 errmsg(
"column \"%s\" of relation \"%s\" does not exist",
1524 address.
classId = RelationRelationId;
1531 address.
classId = RelationRelationId;
1559 (
errcode(ERRCODE_SYNTAX_ERROR),
1560 errmsg(
"column name must be qualified")));
1581 Anum_pg_attrdef_adrelid,
1586 Anum_pg_attrdef_adnum,
1596 defoid = atdform->oid;
1606 (
errcode(ERRCODE_UNDEFINED_COLUMN),
1607 errmsg(
"default value for column \"%s\" of relation \"%s\" does not exist",
1610 address.
classId = AttrDefaultRelationId;
1617 address.
classId = AttrDefaultRelationId;
1634 address.
classId = TypeRelationId;
1643 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1644 errmsg(
"type \"%s\" does not exist",
1654 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
1655 errmsg(
"\"%s\" is not a domain",
1680 address.
classId = OperatorClassRelationId;
1685 address.
classId = OperatorFamilyRelationId;
1690 elog(
ERROR,
"unrecognized objtype: %d", (
int) objtype);
1707 List *
object,
bool missing_ok)
1730 typenames[0] = typenames[1] = NULL;
1733 foreach(cell,
lsecond(
object))
1762 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1763 errmsg(
"operator %d (%s, %s) of %s does not exist",
1793 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1794 errmsg(
"function %d (%s, %s) of %s does not exist",
1808 elog(
ERROR,
"unrecognized objtype: %d", (
int) objtype);
1834 if (strcmp(username,
"public") == 0)
1844 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1845 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1846 username, servername)));
1859 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1860 errmsg(
"server \"%s\" does not exist", servername)));
1870 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1871 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1872 username, servername)));
1926 (
errcode(ERRCODE_UNDEFINED_OBJECT),
1927 errmsg(
"publication relation \"%s\" in publication \"%s\" does not exist",
1971 case DEFACLOBJ_RELATION:
1972 objtype_str =
"tables";
1974 case DEFACLOBJ_SEQUENCE:
1975 objtype_str =
"sequences";
1977 case DEFACLOBJ_FUNCTION:
1978 objtype_str =
"functions";
1980 case DEFACLOBJ_TYPE:
1981 objtype_str =
"types";
1983 case DEFACLOBJ_NAMESPACE:
1984 objtype_str =
"schemas";
1988 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
1989 errmsg(
"unrecognized default ACL object type \"%c\"", objtype),
1990 errhint(
"Valid object types are \"%c\", \"%c\", \"%c\", \"%c\", \"%c\".",
1995 DEFACLOBJ_NAMESPACE)));
2040 (
errcode(ERRCODE_UNDEFINED_OBJECT),
2041 errmsg(
"default ACL for user \"%s\" in schema \"%s\" on %s does not exist",
2042 username, schema, objtype_str)));
2045 (
errcode(ERRCODE_UNDEFINED_OBJECT),
2046 errmsg(
"default ACL for user \"%s\" on %s does not exist",
2047 username, objtype_str)));
2066 &elems, &nulls, &nelems);
2068 for (i = 0; i < nelems; i++)
2072 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2073 errmsg(
"name or argument lists may not contain nulls")));
2094 Node *objnode = NULL;
2106 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2107 errmsg(
"unsupported object type \"%s\"", ttype)));
2123 &elems, &nulls, &nelems);
2126 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2127 errmsg(
"name list length must be exactly %d", 1)));
2130 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2131 errmsg(
"name or argument lists may not contain nulls")));
2141 &elems, &nulls, &nelems);
2144 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2145 errmsg(
"name list length must be exactly %d", 1)));
2148 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2149 errmsg(
"large object OID may not be null")));
2157 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2158 errmsg(
"name list length must be at least %d", 1)));
2180 &elems, &nulls, &nelems);
2183 for (i = 0; i < nelems; i++)
2187 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2188 errmsg(
"name or argument lists may not contain nulls")));
2213 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2214 errmsg(
"argument list length must be exactly %d", 1)));
2220 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2221 errmsg(
"name list length must be at least %d", 2)));
2227 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2228 errmsg(
"name list length must be at least %d", 3)));
2234 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2235 errmsg(
"argument list length must be exactly %d", 2)));
2269 objnode = (
Node *) name;
2285 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2286 errmsg(
"name list length must be exactly %d", 1)));
2291 objnode = (
Node *)
typename;
2321 objnode = (
Node *) owa;
2330 if (objnode == NULL)
2331 elog(
ERROR,
"unrecognized object type: %d", type);
2404 elog(
ERROR,
"constraint with OID %u does not exist",
2486 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2487 errmsg(
"must be owner of large object %u",
2501 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2502 errmsg(
"must be owner of type %s or type %s",
2551 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2552 errmsg(
"must be superuser")));
2558 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2559 errmsg(
"must have CREATEROLE privilege")));
2568 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2569 errmsg(
"must be superuser")));
2576 elog(
ERROR,
"unrecognized object type: %d",
2602 cache =
property->oid_catcache_id;
2608 elog(
ERROR,
"cache lookup failed for cache %d oid %u",
2637 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
2638 errmsg(
"unrecognized object type \"%s\"", objtype)));
2760 for (index = 0; index <
lengthof(ObjectProperty); index++)
2762 if (ObjectProperty[index].class_oid == class_id)
2782 if (prop_last && prop_last->
class_oid == class_id)
2785 for (index = 0; index <
lengthof(ObjectProperty); index++)
2787 if (ObjectProperty[index].class_oid == class_id)
2789 prop_last = &ObjectProperty[index];
2790 return &ObjectProperty[index];
2891 if (proname == NULL)
2903 if (typname == NULL)
2933 elog(
ERROR,
"could not find tuple for cast %u",
2963 elog(
ERROR,
"cache lookup failed for collation %u",
2993 elog(
ERROR,
"cache lookup failed for constraint %u",
3032 elog(
ERROR,
"cache lookup failed for conversion %u",
3064 Anum_pg_attrdef_oid,
3069 true, NULL, 1, skey);
3076 elog(
ERROR,
"could not find tuple for attrdef %u",
3086 colobject.
classId = RelationRelationId;
3087 colobject.
objectId = attrdef->adrelid;
3123 if (oprname == NULL)
3143 elog(
ERROR,
"cache lookup failed for opclass %u",
3153 elog(
ERROR,
"cache lookup failed for access method %u",
3154 opcForm->opcmethod);
3186 elog(
ERROR,
"cache lookup failed for access method %u",
3206 amopDesc =
table_open(AccessMethodOperatorRelationId,
3222 elog(
ERROR,
"could not find tuple for amop entry %u",
3241 amopForm->amopstrategy,
3263 amprocDesc =
table_open(AccessMethodProcedureRelationId,
3279 elog(
ERROR,
"could not find tuple for amproc entry %u",
3298 amprocForm->amprocnum,
3323 Anum_pg_rewrite_oid,
3335 elog(
ERROR,
"could not find tuple for rule %u",
3369 Anum_pg_trigger_oid,
3381 elog(
ERROR,
"could not find tuple for trigger %u",
3411 elog(
ERROR,
"cache lookup failed for namespace %u",
3430 elog(
ERROR,
"could not find tuple for statistics object %u",
3462 elog(
ERROR,
"cache lookup failed for text search parser %u",
3492 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
3507 NameStr(dictForm->dictname)));
3523 elog(
ERROR,
"cache lookup failed for text search template %u",
3538 NameStr(tmplForm->tmplname)));
3554 elog(
ERROR,
"cache lookup failed for text search configuration %u",
3592 elog(
ERROR,
"cache lookup failed for database %u",
3608 elog(
ERROR,
"cache lookup failed for tablespace %u",
3650 elog(
ERROR,
"cache lookup failed for user mapping %u",
3656 useid = umform->umuser;
3684 Anum_pg_default_acl_oid,
3689 true, NULL, 1, skey);
3696 elog(
ERROR,
"could not find tuple for default ACL %u",
3713 switch (defacl->defaclobjtype)
3715 case DEFACLOBJ_RELATION:
3718 _(
"default privileges on new relations belonging to role %s in schema %s"),
3722 _(
"default privileges on new relations belonging to role %s"),
3725 case DEFACLOBJ_SEQUENCE:
3728 _(
"default privileges on new sequences belonging to role %s in schema %s"),
3732 _(
"default privileges on new sequences belonging to role %s"),
3735 case DEFACLOBJ_FUNCTION:
3738 _(
"default privileges on new functions belonging to role %s in schema %s"),
3742 _(
"default privileges on new functions belonging to role %s"),
3745 case DEFACLOBJ_TYPE:
3748 _(
"default privileges on new types belonging to role %s in schema %s"),
3752 _(
"default privileges on new types belonging to role %s"),
3755 case DEFACLOBJ_NAMESPACE:
3758 _(
"default privileges on new schemas belonging to role %s"),
3765 _(
"default privileges belonging to role %s in schema %s"),
3769 _(
"default privileges belonging to role %s"),
3787 elog(
ERROR,
"cache lookup failed for extension %u",
3804 elog(
ERROR,
"cache lookup failed for event trigger %u",
3831 true, NULL, 1, skey);
3838 elog(
ERROR,
"could not find tuple for policy %u",
3881 elog(
ERROR,
"cache lookup failed for publication table %u",
3919 elog(
ERROR,
"could not find tuple for transform %u",
3941 if (buffer.
len == 0)
3980 elog(
ERROR,
"cache lookup failed for relation %u", relid);
3993 switch (relForm->relkind)
3995 case RELKIND_RELATION:
3996 case RELKIND_PARTITIONED_TABLE:
4001 case RELKIND_PARTITIONED_INDEX:
4005 case RELKIND_SEQUENCE:
4009 case RELKIND_TOASTVALUE:
4017 case RELKIND_MATVIEW:
4021 case RELKIND_COMPOSITE_TYPE:
4025 case RELKIND_FOREIGN_TABLE:
4055 elog(
ERROR,
"cache lookup failed for opfamily %u", opfid);
4062 elog(
ERROR,
"cache lookup failed for access method %u",
4063 opfForm->opfmethod);
4103 if (description == NULL)
4119 const char *objname = NULL;
4167 elog(
ERROR,
"invalid null namespace in object %u/%u/%d",
4185 elog(
ERROR,
"invalid null name in object %u/%u/%d",
4217 if (objname && objidentity)
4269 TEXTARRAYOID, -1, 0);
4271 TEXTARRAYOID, -1, 0);
4281 if (identity == NULL)
4488 if (buffer.
len == 0)
4509 elog(
ERROR,
"cache lookup failed for relation %u", relid);
4517 switch (relForm->relkind)
4519 case RELKIND_RELATION:
4520 case RELKIND_PARTITIONED_TABLE:
4524 case RELKIND_PARTITIONED_INDEX:
4527 case RELKIND_SEQUENCE:
4530 case RELKIND_TOASTVALUE:
4536 case RELKIND_MATVIEW:
4539 case RELKIND_COMPOSITE_TYPE:
4542 case RELKIND_FOREIGN_TABLE:
4551 if (objectSubId != 0)
4573 elog(
ERROR,
"cache lookup failed for constraint %u", constroid);
4589 elog(
ERROR,
"invalid constraint %u", constrForm->oid);
4609 elog(
ERROR,
"cache lookup failed for procedure %u", procid);
4617 if (procForm->prokind == PROKIND_AGGREGATE)
4619 else if (procForm->prokind == PROKIND_PROCEDURE)
4687 if (missing_ok && attr == NULL)
4693 if (objname && *objname ==
NIL)
4701 *objname =
lappend(*objname, attr);
4711 if (proname == NULL)
4728 if (typeout == NULL)
4751 elog(
ERROR,
"could not find tuple for cast %u",
4785 elog(
ERROR,
"cache lookup failed for collation %u",
4811 elog(
ERROR,
"cache lookup failed for constraint %u",
4831 domain.
classId = TypeRelationId;
4859 elog(
ERROR,
"cache lookup failed for conversion %u",
4888 Anum_pg_attrdef_oid,
4893 true, NULL, 1, skey);
4900 elog(
ERROR,
"could not find tuple for attrdef %u",
4910 colobject.
classId = RelationRelationId;
4911 colobject.
objectId = attrdef->adrelid;
4934 elog(
ERROR,
"cache lookup failed for language %u",
4960 if (oprname == NULL)
4982 elog(
ERROR,
"cache lookup failed for opclass %u",
4992 elog(
ERROR,
"cache lookup failed for access method %u",
4993 opcForm->opcmethod);
5023 elog(
ERROR,
"cache lookup failed for access method %u",
5044 amopDesc =
table_open(AccessMethodOperatorRelationId,
5060 elog(
ERROR,
"could not find tuple for amop entry %u",
5080 psprintf(
"%d", amopForm->amopstrategy));
5085 amopForm->amopstrategy,
5086 ltype, rtype, opfam.
data);
5106 amprocDesc =
table_open(AccessMethodProcedureRelationId,
5122 elog(
ERROR,
"could not find tuple for amproc entry %u",
5142 psprintf(
"%d", amprocForm->amprocnum));
5147 amprocForm->amprocnum,
5148 ltype, rtype, opfam.
data);
5171 elog(
ERROR,
"could not find tuple for rule %u",
5204 elog(
ERROR,
"could not find tuple for trigger %u",
5231 elog(
ERROR,
"cache lookup failed for namespace %u",
5253 elog(
ERROR,
"cache lookup failed for statistics object %u",
5261 NameStr(formStatistic->stxname)));
5280 elog(
ERROR,
"cache lookup failed for text search parser %u",
5288 NameStr(formParser->prsname)));
5307 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
5315 NameStr(formDict->dictname)));
5334 elog(
ERROR,
"cache lookup failed for text search template %u",
5342 NameStr(formTmpl->tmplname)));
5361 elog(
ERROR,
"cache lookup failed for text search configuration %u",
5399 elog(
ERROR,
"cache lookup failed for database %u",
5418 elog(
ERROR,
"cache lookup failed for tablespace %u",
5466 const char *usename;
5473 elog(
ERROR,
"cache lookup failed for user mapping %u",
5478 useid = umform->umuser;
5513 Anum_pg_default_acl_oid,
5518 true, NULL, 1, skey);
5525 elog(
ERROR,
"could not find tuple for default ACL %u",
5551 switch (defacl->defaclobjtype)
5553 case DEFACLOBJ_RELATION:
5557 case DEFACLOBJ_SEQUENCE:
5561 case DEFACLOBJ_FUNCTION:
5565 case DEFACLOBJ_TYPE:
5569 case DEFACLOBJ_NAMESPACE:
5579 *objname =
lappend(*objname, schema);
5596 elog(
ERROR,
"cache lookup failed for extension %u",
5620 elog(
ERROR,
"cache lookup failed for event trigger %u",