84#include "utils/fmgroids.h"
136 "access method operator",
150 "access method procedure",
262 "foreign-data wrapper",
318 "large object metadata",
514 "text search configuration",
528 "text search dictionary",
542 "text search parser",
556 "text search template",
612 "extended statistics",
689 "sequence column", -1
692 "toast table column", -1
698 "materialized view column", -1
701 "composite type column", -1
785 "role membership", -1
845 String *strval,
bool missing_ok);
848 LOCKMODE lockmode,
bool missing_ok);
853 LOCKMODE lockmode,
bool missing_ok);
858 TypeName *
typename,
bool missing_ok);
862 List *
object,
bool missing_ok);
880 int32 objectSubId,
bool missing_ok);
975 &relation, missing_ok);
1055 errmsg(
"large object %u does not exist",
1134 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1239 relp, lockmode, missing_ok);
1248 String *strval,
bool missing_ok)
1324 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1350 lockmode, missing_ok);
1361 errmsg(
"\"%s\" is not an index",
1368 errmsg(
"\"%s\" is not a sequence",
1376 errmsg(
"\"%s\" is not a table",
1383 errmsg(
"\"%s\" is not a view",
1390 errmsg(
"\"%s\" is not a materialized view",
1397 errmsg(
"\"%s\" is not a foreign table",
1401 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1438 errmsg(
"must specify relation and object name")));
1477 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1483 if (relation !=
NULL)
1514 errmsg(
"column name must be qualified")));
1528 errmsg(
"column \"%s\" of relation \"%s\" does not exist",
1567 errmsg(
"column name must be qualified")));
1586 errmsg(
"default value for column \"%s\" of relation \"%s\" does not exist",
1623 errmsg(
"type \"%s\" does not exist",
1634 errmsg(
"\"%s\" is not a domain",
1669 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1686 List *
object,
bool missing_ok)
1712 foreach(cell,
lsecond(
object))
1742 errmsg(
"operator %d (%s, %s) of %s does not exist",
1773 errmsg(
"function %d (%s, %s) of %s does not exist",
1787 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1824 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1839 errmsg(
"server \"%s\" does not exist", servername)));
1850 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1906 errmsg(
"publication relation \"%s\" in publication \"%s\" does not exist",
1953 errmsg(
"publication schema \"%s\" in publication \"%s\" does not exist",
1954 schemaname, pubname)));
2014 errmsg(
"unrecognized default ACL object type \"%c\"", objtype),
2015 errhint(
"Valid object types are \"%c\", \"%c\", \"%c\", \"%c\", \"%c\", \"%c\".",
2067 errmsg(
"default ACL for user \"%s\" in schema \"%s\" on %s does not exist",
2072 errmsg(
"default ACL for user \"%s\" on %s does not exist",
2093 for (
i = 0;
i < nelems;
i++)
2098 errmsg(
"name or argument lists may not contain nulls")));
2132 errmsg(
"unsupported object type \"%s\"", ttype)));
2151 errmsg(
"name list length must be exactly %d", 1)));
2155 errmsg(
"name or argument lists may not contain nulls")));
2168 errmsg(
"name list length must be exactly %d", 1)));
2172 errmsg(
"large object OID may not be null")));
2181 errmsg(
"name list length must be at least %d", 1)));
2205 for (
i = 0;
i < nelems;
i++)
2210 errmsg(
"name or argument lists may not contain nulls")));
2233 errmsg(
"name list length must be exactly %d", 1)));
2244 errmsg(
"argument list length must be exactly %d", 1)));
2251 errmsg(
"name list length must be at least %d", 2)));
2258 errmsg(
"name list length must be at least %d", 3)));
2265 errmsg(
"argument list length must be exactly %d", 2)));
2317 errmsg(
"name list length must be exactly %d", 1)));
2352 owa->objargs = args;
2373 elog(
ERROR,
"return type must be a row type");
2425 elog(
ERROR,
"constraint with OID %u does not exist",
2479 errmsg(
"must be owner of large object %u",
2494 errmsg(
"must be owner of type %s or type %s",
2521 errmsg(
"permission denied"),
2522 errdetail(
"The current user must have the %s attribute.",
2530 errmsg(
"permission denied"),
2531 errdetail(
"The current user must have the %s attribute.",
2536 errmsg(
"permission denied"),
2537 errdetail(
"The current user must have the %s option on role \"%s\".",
2551 errmsg(
"must be superuser")));
2561 elog(
ERROR,
"unsupported object type: %d", (
int) objtype);
2586 cache =
property->oid_catcache_id;
2592 elog(
ERROR,
"cache lookup failed for cache %d oid %u",
2620 errmsg(
"unrecognized object type \"%s\"", objtype)));
2865 char **pubname,
char **nspname)
2875 elog(
ERROR,
"cache lookup failed for publication schema %u",
2896 elog(
ERROR,
"cache lookup failed for schema %u",
2992 elog(
ERROR,
"could not find tuple for cast %u",
3022 elog(
ERROR,
"cache lookup failed for collation %u",
3052 elog(
ERROR,
"cache lookup failed for constraint %u",
3091 elog(
ERROR,
"cache lookup failed for conversion %u",
3120 elog(
ERROR,
"could not find tuple for attrdef %u",
3155 if (oprname ==
NULL)
3175 elog(
ERROR,
"cache lookup failed for opclass %u",
3185 elog(
ERROR,
"cache lookup failed for access method %u",
3218 elog(
ERROR,
"cache lookup failed for access method %u",
3254 elog(
ERROR,
"could not find tuple for amop entry %u",
3319 elog(
ERROR,
"could not find tuple for amproc entry %u",
3383 elog(
ERROR,
"could not find tuple for rule %u",
3429 elog(
ERROR,
"could not find tuple for trigger %u",
3459 elog(
ERROR,
"cache lookup failed for namespace %u",
3478 elog(
ERROR,
"could not find tuple for statistics object %u",
3510 elog(
ERROR,
"cache lookup failed for text search parser %u",
3540 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
3571 elog(
ERROR,
"cache lookup failed for text search template %u",
3602 elog(
ERROR,
"cache lookup failed for text search configuration %u",
3655 elog(
ERROR,
"could not find tuple for role membership %u",
3682 elog(
ERROR,
"cache lookup failed for database %u",
3698 elog(
ERROR,
"cache lookup failed for tablespace %u",
3740 elog(
ERROR,
"cache lookup failed for user mapping %u",
3786 elog(
ERROR,
"could not find tuple for default ACL %u",
3803 switch (
defacl->defaclobjtype)
3808 _(
"default privileges on new relations belonging to role %s in schema %s"),
3812 _(
"default privileges on new relations belonging to role %s"),
3818 _(
"default privileges on new sequences belonging to role %s in schema %s"),
3822 _(
"default privileges on new sequences belonging to role %s"),
3828 _(
"default privileges on new functions belonging to role %s in schema %s"),
3832 _(
"default privileges on new functions belonging to role %s"),
3838 _(
"default privileges on new types belonging to role %s in schema %s"),
3842 _(
"default privileges on new types belonging to role %s"),
3848 _(
"default privileges on new schemas belonging to role %s"),
3854 _(
"default privileges on new large objects belonging to role %s"),
3861 _(
"default privileges belonging to role %s in schema %s"),
3865 _(
"default privileges belonging to role %s"),
3883 elog(
ERROR,
"cache lookup failed for extension %u",
3900 elog(
ERROR,
"cache lookup failed for event trigger %u",
3921 elog(
ERROR,
"cache lookup failed for parameter ACL %u",
3957 elog(
ERROR,
"could not find tuple for policy %u",
3995 &pubname, &nspname))
4017 elog(
ERROR,
"cache lookup failed for publication table %u",
4056 elog(
ERROR,
"could not find tuple for transform %u",
4076 if (buffer.
len == 0)
4115 elog(
ERROR,
"cache lookup failed for relation %u", relid);
4197 elog(
ERROR,
"cache lookup failed for access method %u",
4254 const char *objname =
NULL;
4267 elog(
ERROR,
"return type must be a row type");
4289 elog(
ERROR,
"invalid null namespace in object %u/%u/%d",
4307 elog(
ERROR,
"invalid null name in object %u/%u/%d",
4339 if (objname && objidentity)
4384 elog(
ERROR,
"return type must be a row type");
4392 if (identity ==
NULL)
4698 elog(
ERROR,
"cache lookup failed for relation %u", relid);
4740 if (objectSubId != 0)
4798 elog(
ERROR,
"cache lookup failed for procedure %u", procid);
4876 if (missing_ok && attr ==
NULL)
4882 if (objname && *objname ==
NIL)
4890 *objname =
lappend(*objname, attr);
4941 elog(
ERROR,
"could not find tuple for cast %u",
4975 elog(
ERROR,
"cache lookup failed for collation %u",
5001 elog(
ERROR,
"cache lookup failed for constraint %u",
5049 elog(
ERROR,
"cache lookup failed for conversion %u",
5074 elog(
ERROR,
"could not find tuple for attrdef %u",
5096 elog(
ERROR,
"cache lookup failed for language %u",
5124 if (oprname ==
NULL)
5146 elog(
ERROR,
"cache lookup failed for opclass %u",
5156 elog(
ERROR,
"cache lookup failed for access method %u",
5187 elog(
ERROR,
"cache lookup failed for access method %u",
5224 elog(
ERROR,
"could not find tuple for amop entry %u",
5286 elog(
ERROR,
"could not find tuple for amproc entry %u",
5335 elog(
ERROR,
"could not find tuple for rule %u",
5368 elog(
ERROR,
"could not find tuple for trigger %u",
5395 elog(
ERROR,
"cache lookup failed for namespace %u",
5417 elog(
ERROR,
"cache lookup failed for statistics object %u",
5444 elog(
ERROR,
"cache lookup failed for text search parser %u",
5471 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
5498 elog(
ERROR,
"cache lookup failed for text search template %u",
5525 elog(
ERROR,
"cache lookup failed for text search configuration %u",
5579 elog(
ERROR,
"could not find tuple for pg_auth_members entry %u",
5606 elog(
ERROR,
"cache lookup failed for database %u",
5625 elog(
ERROR,
"cache lookup failed for tablespace %u",
5680 elog(
ERROR,
"cache lookup failed for user mapping %u",
5732 elog(
ERROR,
"could not find tuple for default ACL %u",
5757 switch (
defacl->defaclobjtype)
5781 " on large objects");
5789 *objname =
lappend(*objname, schema);
5806 elog(
ERROR,
"cache lookup failed for extension %u",
5827 elog(
ERROR,
"cache lookup failed for event trigger %u",
5851 elog(
ERROR,
"cache lookup failed for parameter ACL %u",
5879 elog(
ERROR,
"could not find tuple for policy %u",
5948 elog(
ERROR,
"cache lookup failed for publication table %u",
5998 elog(
ERROR,
"could not find tuple for transform %u",
6034 if (objname && *objname ==
NIL)
6035 elog(
ERROR,
"requested object address for unsupported object class %u: text result \"%s\"",
6041 if (buffer.
len == 0)
6044 (objargs ==
NULL || *objargs ==
NIL));
6073 elog(
ERROR,
"cache lookup failed for access method %u",
6109 elog(
ERROR,
"cache lookup failed for relation %u", relid);
bool is_admin_of_role(Oid member, Oid role)
Oid get_role_oid(const char *rolname, bool missing_ok)
void aclcheck_error(AclResult aclerr, ObjectType objtype, const char *objectname)
bool object_ownercheck(Oid classid, Oid objectid, Oid roleid)
void aclcheck_error_type(AclResult aclerr, Oid typeOid)
bool has_createrole_privilege(Oid roleid)
Oid get_index_am_oid(const char *amname, bool missing_ok)
char * get_am_name(Oid amOid)
Oid get_am_oid(const char *amname, bool missing_ok)
#define PG_GETARG_ARRAYTYPE_P(n)
ArrayType * construct_empty_array(Oid elmtype)
ArrayType * construct_md_array(Datum *elems, bool *nulls, int ndims, int *dims, int *lbs, Oid elmtype, int elmlen, bool elmbyval, char elmalign)
void deconstruct_array_builtin(const ArrayType *array, Oid elmtype, Datum **elemsp, bool **nullsp, int *nelemsp)
#define InvalidAttrNumber
char * get_tablespace_name(Oid spc_oid)
Oid get_tablespace_oid(const char *tablespacename, bool missing_ok)
static Datum values[MAXATTR]
#define CStringGetTextDatum(s)
#define FORMAT_TYPE_ALLOW_INVALID
#define TextDatumGetCString(d)
#define FORMAT_TYPE_INVALID_AS_NULL
#define FORMAT_TYPE_FORCE_QUALIFY
#define Assert(condition)
#define OidIsValid(objectId)
bool IsSharedRelation(Oid relationId)
Oid get_database_oid(const char *dbname, bool missing_ok)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
int errhint(const char *fmt,...) pg_attribute_printf(1
int errdetail(const char *fmt,...) pg_attribute_printf(1
int int errmsg_internal(const char *fmt,...) pg_attribute_printf(1
#define ereport(elevel,...)
Oid get_event_trigger_oid(const char *trigname, bool missing_ok)
Oid get_extension_oid(const char *extname, bool missing_ok)
char * get_extension_name(Oid ext_oid)
#define palloc_array(type, count)
#define PG_GETARG_DATUM(n)
#define PG_RETURN_TEXT_P(x)
#define PG_GETARG_INT32(n)
#define PG_RETURN_DATUM(x)
ForeignServer * GetForeignServerByName(const char *srvname, bool missing_ok)
Oid get_foreign_server_oid(const char *servername, bool missing_ok)
ForeignServer * GetForeignServer(Oid serverid)
ForeignDataWrapper * GetForeignDataWrapperExtended(Oid fdwid, bits16 flags)
ForeignServer * GetForeignServerExtended(Oid serverid, bits16 flags)
Oid get_foreign_data_wrapper_oid(const char *fdwname, bool missing_ok)
TypeFuncClass get_call_result_type(FunctionCallInfo fcinfo, Oid *resultTypeId, TupleDesc *resultTupleDesc)
static Datum HeapTupleGetDatum(const HeapTupleData *tuple)
Oid get_transform_oid(Oid type_id, Oid lang_id, bool missing_ok)
void systable_endscan(SysScanDesc sysscan)
HeapTuple systable_getnext(SysScanDesc sysscan)
SysScanDesc systable_beginscan(Relation heapRelation, Oid indexId, bool indexOK, Snapshot snapshot, int nkeys, ScanKey key)
HeapTuple heap_copytuple(HeapTuple tuple)
HeapTuple heap_form_tuple(TupleDesc tupleDescriptor, const Datum *values, const bool *isnull)
#define HeapTupleIsValid(tuple)
static Datum heap_getattr(HeapTuple tup, int attnum, TupleDesc tupleDesc, bool *isnull)
static void * GETSTRUCT(const HeapTupleData *tuple)
bool lo_compat_privileges
List * lappend(List *list, void *datum)
List * list_copy_tail(const List *oldlist, int nskip)
List * lcons(void *datum, List *list)
List * list_copy_head(const List *oldlist, int len)
void LockSharedObject(Oid classid, Oid objid, uint16 objsubid, LOCKMODE lockmode)
void LockDatabaseObject(Oid classid, Oid objid, uint16 objsubid, LOCKMODE lockmode)
void LockTuple(Relation relation, const ItemPointerData *tid, LOCKMODE lockmode)
void UnlockSharedObject(Oid classid, Oid objid, uint16 objsubid, LOCKMODE lockmode)
void UnlockDatabaseObject(Oid classid, Oid objid, uint16 objsubid, LOCKMODE lockmode)
#define InplaceUpdateTupleLock
Oid get_cast_oid(Oid sourcetypeid, Oid targettypeid, bool missing_ok)
AttrNumber get_attnum(Oid relid, const char *attname)
char * get_database_name(Oid dbid)
char get_rel_relkind(Oid relid)
Oid get_publication_oid(const char *pubname, bool missing_ok)
char * get_language_name(Oid langoid, bool missing_ok)
char * get_namespace_name_or_temp(Oid nspid)
char * get_attname(Oid relid, AttrNumber attnum, bool missing_ok)
Oid get_subscription_oid(const char *subname, bool missing_ok)
char * get_subscription_name(Oid subid, bool missing_ok)
char * get_publication_name(Oid pubid, bool missing_ok)
char * get_namespace_name(Oid nspid)
char * pstrdup(const char *in)
void pfree(void *pointer)
MemoryContext CurrentMemoryContext
void MemoryContextDelete(MemoryContext context)
#define AllocSetContextCreate
#define ALLOCSET_DEFAULT_SIZES
char * GetUserNameFromId(Oid roleid, bool noerr)
char * NameListToString(const List *names)
bool TSTemplateIsVisible(Oid tmplId)
bool OpfamilyIsVisible(Oid opfid)
bool CollationIsVisible(Oid collid)
bool ConversionIsVisible(Oid conid)
Oid get_statistics_object_oid(List *names, bool missing_ok)
Oid get_collation_oid(List *collname, bool missing_ok)
Oid get_namespace_oid(const char *nspname, bool missing_ok)
bool RelationIsVisible(Oid relid)
bool OpclassIsVisible(Oid opcid)
bool TSParserIsVisible(Oid prsId)
Oid get_conversion_oid(List *conname, bool missing_ok)
Oid get_ts_dict_oid(List *names, bool missing_ok)
Oid get_ts_parser_oid(List *names, bool missing_ok)
RangeVar * makeRangeVarFromNameList(const List *names)
Oid get_ts_config_oid(List *names, bool missing_ok)
bool TSConfigIsVisible(Oid cfgid)
bool StatisticsObjIsVisible(Oid stxid)
bool TSDictionaryIsVisible(Oid dictId)
Oid get_ts_template_oid(List *names, bool missing_ok)
#define castNode(_type_, nodeptr)
static void getRelationDescription(StringInfo buffer, Oid relid, bool missing_ok)
char * getObjectTypeDescription(const ObjectAddress *object, bool missing_ok)
ArrayType * strlist_to_textarray(List *list)
bool get_object_namensp_unique(Oid class_id)
ObjectAddress get_object_address_rv(ObjectType objtype, RangeVar *rel, List *object, Relation *relp, LOCKMODE lockmode, bool missing_ok)
AttrNumber get_object_attnum_owner(Oid class_id)
Datum pg_identify_object(PG_FUNCTION_ARGS)
HeapTuple get_catalog_object_by_oid(Relation catalog, AttrNumber oidcol, Oid objectId)
AttrNumber get_object_attnum_oid(Oid class_id)
static const ObjectPropertyType ObjectProperty[]
ObjectType get_relkind_objtype(char relkind)
AttrNumber get_object_attnum_namespace(Oid class_id)
void check_object_ownership(Oid roleid, ObjectType objtype, ObjectAddress address, Node *object, Relation relation)
SysCacheIdentifier get_object_catcache_name(Oid class_id)
char * getObjectDescriptionOids(Oid classid, Oid objid)
char * getObjectIdentityParts(const ObjectAddress *object, List **objname, List **objargs, bool missing_ok)
static ObjectAddress get_object_address_publication_schema(List *object, bool missing_ok)
AttrNumber get_object_attnum_name(Oid class_id)
static ObjectAddress get_object_address_relobject(ObjectType objtype, List *object, Relation *relp, bool missing_ok)
static void getConstraintTypeDescription(StringInfo buffer, Oid constroid, bool missing_ok)
const char * get_object_class_descr(Oid class_id)
static void getProcedureTypeDescription(StringInfo buffer, Oid procid, bool missing_ok)
static void getOpFamilyIdentity(StringInfo buffer, Oid opfid, List **object, bool missing_ok)
static ObjectAddress get_object_address_defacl(List *object, bool missing_ok)
char * getObjectDescription(const ObjectAddress *object, bool missing_ok)
Datum pg_get_acl(PG_FUNCTION_ARGS)
static bool getPublicationSchemaInfo(const ObjectAddress *object, bool missing_ok, char **pubname, char **nspname)
AttrNumber get_object_attnum_acl(Oid class_id)
static void getRelationTypeDescription(StringInfo buffer, Oid relid, int32 objectSubId, bool missing_ok)
static void getOpFamilyDescription(StringInfo buffer, Oid opfid, bool missing_ok)
Oid get_object_oid_index(Oid class_id)
static ObjectAddress get_object_address_unqualified(ObjectType objtype, String *strval, bool missing_ok)
int read_objtype_from_string(const char *objtype)
SysCacheIdentifier get_object_catcache_oid(Oid class_id)
const ObjectAddress InvalidObjectAddress
ObjectType get_object_type(Oid class_id, Oid object_id)
static ObjectAddress get_object_address_publication_rel(List *object, Relation *relp, bool missing_ok)
static ObjectAddress get_object_address_opf_member(ObjectType objtype, List *object, bool missing_ok)
static const ObjectPropertyType * get_object_property_data(Oid class_id)
static ObjectAddress get_object_address_type(ObjectType objtype, TypeName *typename, bool missing_ok)
static ObjectAddress get_object_address_usermapping(List *object, bool missing_ok)
static const struct object_type_map ObjectTypeMap[]
static void getRelationIdentity(StringInfo buffer, Oid relid, List **object, bool missing_ok)
static ObjectAddress get_object_address_opcf(ObjectType objtype, List *object, bool missing_ok)
Datum pg_identify_object_as_address(PG_FUNCTION_ARGS)
ObjectAddress get_object_address(ObjectType objtype, Node *object, Relation *relp, LOCKMODE lockmode, bool missing_ok)
Datum pg_describe_object(PG_FUNCTION_ARGS)
Datum pg_get_object_address(PG_FUNCTION_ARGS)
static ObjectAddress get_object_address_attribute(ObjectType objtype, List *object, Relation *relp, LOCKMODE lockmode, bool missing_ok)
static ObjectAddress get_relation_by_qualified_name(ObjectType objtype, List *object, Relation *relp, LOCKMODE lockmode, bool missing_ok)
char * getObjectIdentity(const ObjectAddress *object, bool missing_ok)
Oid get_object_namespace(const ObjectAddress *address)
HeapTuple get_catalog_object_by_oid_extended(Relation catalog, AttrNumber oidcol, Oid objectId, bool locktup)
static ObjectAddress get_object_address_attrdef(ObjectType objtype, List *object, Relation *relp, LOCKMODE lockmode, bool missing_ok)
bool is_objectclass_supported(Oid class_id)
static List * textarray_to_strvaluelist(ArrayType *arr)
#define ObjectAddressSet(addr, class_id, object_id)
Oid get_opclass_oid(Oid amID, List *opclassname, bool missing_ok)
Oid get_opfamily_oid(Oid amID, List *opfamilyname, bool missing_ok)
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
Oid LookupFuncWithArgs(ObjectType objtype, ObjectWithArgs *func, bool missing_ok)
Oid LookupOperWithArgs(ObjectWithArgs *oper, bool noError)
char * TypeNameToString(const TypeName *typeName)
Type LookupTypeName(ParseState *pstate, const TypeName *typeName, int32 *typmod_p, bool missing_ok)
TypeName * typeStringToTypeName(const char *str, Node *escontext)
Oid typenameTypeId(ParseState *pstate, const TypeName *typeName)
Oid LookupTypeNameOid(ParseState *pstate, const TypeName *typeName, bool missing_ok)
@ OBJECT_PUBLICATION_NAMESPACE
END_CATALOG_STRUCT typedef FormData_pg_am * Form_pg_am
END_CATALOG_STRUCT typedef FormData_pg_amop * Form_pg_amop
END_CATALOG_STRUCT typedef FormData_pg_amproc * Form_pg_amproc
Oid GetAttrDefaultOid(Oid relid, AttrNumber attnum)
ObjectAddress GetAttrDefaultColumnAddress(Oid attrdefoid)
END_CATALOG_STRUCT typedef FormData_pg_auth_members * Form_pg_auth_members
END_CATALOG_STRUCT typedef FormData_pg_authid * Form_pg_authid
END_CATALOG_STRUCT typedef FormData_pg_cast * Form_pg_cast
FormData_pg_class * Form_pg_class
END_CATALOG_STRUCT typedef FormData_pg_collation * Form_pg_collation
Oid get_relation_constraint_oid(Oid relid, const char *conname, bool missing_ok)
Oid get_domain_constraint_oid(Oid typid, const char *conname, bool missing_ok)
END_CATALOG_STRUCT typedef FormData_pg_constraint * Form_pg_constraint
END_CATALOG_STRUCT typedef FormData_pg_conversion * Form_pg_conversion
END_CATALOG_STRUCT typedef FormData_pg_default_acl * Form_pg_default_acl
END_CATALOG_STRUCT typedef FormData_pg_event_trigger * Form_pg_event_trigger
END_CATALOG_STRUCT typedef FormData_pg_language * Form_pg_language
bool LargeObjectExists(Oid loid)
#define lfirst_node(type, lc)
static int list_length(const List *l)
#define linitial_node(type, l)
#define lsecond_node(type, l)
#define list_make3(x1, x2, x3)
#define list_make2(x1, x2)
END_CATALOG_STRUCT typedef FormData_pg_opclass * Form_pg_opclass
END_CATALOG_STRUCT typedef FormData_pg_opfamily * Form_pg_opfamily
Oid ParameterAclLookup(const char *parameter, bool missing_ok)
END_CATALOG_STRUCT typedef FormData_pg_policy * Form_pg_policy
END_CATALOG_STRUCT typedef FormData_pg_proc * Form_pg_proc
Publication * GetPublicationByName(const char *pubname, bool missing_ok)
END_CATALOG_STRUCT typedef FormData_pg_publication_namespace * Form_pg_publication_namespace
END_CATALOG_STRUCT typedef FormData_pg_publication_rel * Form_pg_publication_rel
END_CATALOG_STRUCT typedef FormData_pg_rewrite * Form_pg_rewrite
END_CATALOG_STRUCT typedef FormData_pg_statistic_ext * Form_pg_statistic_ext
END_CATALOG_STRUCT typedef FormData_pg_trigger * Form_pg_trigger
END_CATALOG_STRUCT typedef FormData_pg_ts_config * Form_pg_ts_config
END_CATALOG_STRUCT typedef FormData_pg_ts_dict * Form_pg_ts_dict
END_CATALOG_STRUCT typedef FormData_pg_ts_parser * Form_pg_ts_parser
END_CATALOG_STRUCT typedef FormData_pg_ts_template * Form_pg_ts_template
END_CATALOG_STRUCT typedef FormData_pg_type * Form_pg_type
END_CATALOG_STRUCT typedef FormData_pg_user_mapping * Form_pg_user_mapping
Oid get_relation_policy_oid(Oid relid, const char *policy_name, bool missing_ok)
static Datum PointerGetDatum(const void *X)
static Name DatumGetName(Datum X)
static Oid DatumGetObjectId(Datum X)
static Datum Int16GetDatum(int16 X)
static Datum ObjectIdGetDatum(Oid X)
static Datum CStringGetDatum(const char *X)
static Datum Int32GetDatum(int32 X)
static Datum CharGetDatum(char X)
Oid get_language_oid(const char *langname, bool missing_ok)
char * psprintf(const char *fmt,...)
char * format_procedure_extended(Oid procedure_oid, bits16 flags)
char * format_procedure(Oid procedure_oid)
char * format_operator_extended(Oid operator_oid, bits16 flags)
void format_operator_parts(Oid operator_oid, List **objnames, List **objargs, bool missing_ok)
void format_procedure_parts(Oid procedure_oid, List **objnames, List **objargs, bool missing_ok)
char * format_operator(Oid operator_oid)
#define FORMAT_OPERATOR_INVALID_AS_NULL
#define FORMAT_OPERATOR_FORCE_QUALIFY
#define FORMAT_PROC_FORCE_QUALIFY
#define FORMAT_PROC_INVALID_AS_NULL
#define RelationGetRelid(relation)
#define RelationGetDescr(relation)
#define RelationGetRelationName(relation)
Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok)
char * quote_qualified_identifier(const char *qualifier, const char *ident)
const char * quote_identifier(const char *ident)
void ScanKeyInit(ScanKey entry, AttrNumber attributeNumber, StrategyNumber strategy, RegProcedure procedure, Datum argument)
uint64 SharedInvalidMessageCounter
Relation relation_openrv_extended(const RangeVar *relation, LOCKMODE lockmode, bool missing_ok)
void relation_close(Relation relation, LOCKMODE lockmode)
Relation relation_openrv(const RangeVar *relation, LOCKMODE lockmode)
#define BTEqualStrategyNumber
void appendStringInfo(StringInfo str, const char *fmt,...)
void appendStringInfoString(StringInfo str, const char *s)
void initStringInfo(StringInfo str)
AttrNumber attnum_namespace
SysCacheIdentifier oid_catcache_id
SysCacheIdentifier name_catcache_id
bool superuser_arg(Oid roleid)
HeapTuple SearchSysCacheCopyAttNum(Oid relid, int16 attnum)
HeapTuple SearchSysCacheLockedCopy1(SysCacheIdentifier cacheId, Datum key1)
void ReleaseSysCache(HeapTuple tuple)
HeapTuple SearchSysCache2(SysCacheIdentifier cacheId, Datum key1, Datum key2)
HeapTuple SearchSysCache3(SysCacheIdentifier cacheId, Datum key1, Datum key2, Datum key3)
Datum SysCacheGetAttrNotNull(SysCacheIdentifier cacheId, HeapTuple tup, AttrNumber attributeNumber)
HeapTuple SearchSysCache4(SysCacheIdentifier cacheId, Datum key1, Datum key2, Datum key3, Datum key4)
HeapTuple SearchSysCache1(SysCacheIdentifier cacheId, Datum key1)
Datum SysCacheGetAttr(SysCacheIdentifier cacheId, HeapTuple tup, AttrNumber attributeNumber, bool *isNull)
#define SearchSysCacheCopy1(cacheId, key1)
#define GetSysCacheOid2(cacheId, oidcol, key1, key2)
void table_close(Relation relation, LOCKMODE lockmode)
Relation table_open(Oid relationId, LOCKMODE lockmode)
Relation table_openrv_extended(const RangeVar *relation, LOCKMODE lockmode, bool missing_ok)
Oid get_trigger_oid(Oid relid, const char *trigname, bool missing_ok)
String * makeString(char *str)
Float * makeFloat(char *numericStr)
text * cstring_to_text(const char *s)