84#include "utils/fmgroids.h"
135 "access method operator",
149 "access method procedure",
261 "foreign-data wrapper",
317 "large object metadata",
513 "text search configuration",
527 "text search dictionary",
541 "text search parser",
555 "text search template",
611 "extended statistics",
688 "sequence column", -1
691 "toast table column", -1
697 "materialized view column", -1
700 "composite type column", -1
784 "role membership", -1
844 String *strval,
bool missing_ok);
847 LOCKMODE lockmode,
bool missing_ok);
852 LOCKMODE lockmode,
bool missing_ok);
857 TypeName *
typename,
bool missing_ok);
861 List *
object,
bool missing_ok);
879 int32 objectSubId,
bool missing_ok);
974 &relation, missing_ok);
1054 errmsg(
"large object %u does not exist",
1133 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1238 relp, lockmode, missing_ok);
1247 String *strval,
bool missing_ok)
1323 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1349 lockmode, missing_ok);
1360 errmsg(
"\"%s\" is not an index",
1367 errmsg(
"\"%s\" is not a sequence",
1375 errmsg(
"\"%s\" is not a table",
1382 errmsg(
"\"%s\" is not a view",
1389 errmsg(
"\"%s\" is not a materialized view",
1396 errmsg(
"\"%s\" is not a foreign table",
1400 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1437 errmsg(
"must specify relation and object name")));
1476 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1482 if (relation !=
NULL)
1513 errmsg(
"column name must be qualified")));
1527 errmsg(
"column \"%s\" of relation \"%s\" does not exist",
1566 errmsg(
"column name must be qualified")));
1585 errmsg(
"default value for column \"%s\" of relation \"%s\" does not exist",
1622 errmsg(
"type \"%s\" does not exist",
1633 errmsg(
"\"%s\" is not a domain",
1668 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1685 List *
object,
bool missing_ok)
1711 foreach(cell,
lsecond(
object))
1741 errmsg(
"operator %d (%s, %s) of %s does not exist",
1772 errmsg(
"function %d (%s, %s) of %s does not exist",
1786 elog(
ERROR,
"unrecognized object type: %d", (
int) objtype);
1823 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1838 errmsg(
"server \"%s\" does not exist", servername)));
1849 errmsg(
"user mapping for user \"%s\" on server \"%s\" does not exist",
1905 errmsg(
"publication relation \"%s\" in publication \"%s\" does not exist",
1952 errmsg(
"publication schema \"%s\" in publication \"%s\" does not exist",
1953 schemaname, pubname)));
2013 errmsg(
"unrecognized default ACL object type \"%c\"", objtype),
2014 errhint(
"Valid object types are \"%c\", \"%c\", \"%c\", \"%c\", \"%c\", \"%c\".",
2066 errmsg(
"default ACL for user \"%s\" in schema \"%s\" on %s does not exist",
2071 errmsg(
"default ACL for user \"%s\" on %s does not exist",
2092 for (
i = 0;
i < nelems;
i++)
2097 errmsg(
"name or argument lists may not contain nulls")));
2131 errmsg(
"unsupported object type \"%s\"", ttype)));
2150 errmsg(
"name list length must be exactly %d", 1)));
2154 errmsg(
"name or argument lists may not contain nulls")));
2167 errmsg(
"name list length must be exactly %d", 1)));
2171 errmsg(
"large object OID may not be null")));
2180 errmsg(
"name list length must be at least %d", 1)));
2204 for (
i = 0;
i < nelems;
i++)
2209 errmsg(
"name or argument lists may not contain nulls")));
2232 errmsg(
"name list length must be exactly %d", 1)));
2243 errmsg(
"argument list length must be exactly %d", 1)));
2250 errmsg(
"name list length must be at least %d", 2)));
2257 errmsg(
"name list length must be at least %d", 3)));
2264 errmsg(
"argument list length must be exactly %d", 2)));
2316 errmsg(
"name list length must be exactly %d", 1)));
2351 owa->objargs = args;
2372 elog(
ERROR,
"return type must be a row type");
2424 elog(
ERROR,
"constraint with OID %u does not exist",
2478 errmsg(
"must be owner of large object %u",
2493 errmsg(
"must be owner of type %s or type %s",
2520 errmsg(
"permission denied"),
2521 errdetail(
"The current user must have the %s attribute.",
2529 errmsg(
"permission denied"),
2530 errdetail(
"The current user must have the %s attribute.",
2535 errmsg(
"permission denied"),
2536 errdetail(
"The current user must have the %s option on role \"%s\".",
2550 errmsg(
"must be superuser")));
2560 elog(
ERROR,
"unsupported object type: %d", (
int) objtype);
2585 cache =
property->oid_catcache_id;
2591 elog(
ERROR,
"cache lookup failed for cache %d oid %u",
2619 errmsg(
"unrecognized object type \"%s\"", objtype)));
2864 char **pubname,
char **nspname)
2874 elog(
ERROR,
"cache lookup failed for publication schema %u",
2895 elog(
ERROR,
"cache lookup failed for schema %u",
2991 elog(
ERROR,
"could not find tuple for cast %u",
3021 elog(
ERROR,
"cache lookup failed for collation %u",
3051 elog(
ERROR,
"cache lookup failed for constraint %u",
3090 elog(
ERROR,
"cache lookup failed for conversion %u",
3119 elog(
ERROR,
"could not find tuple for attrdef %u",
3154 if (oprname ==
NULL)
3174 elog(
ERROR,
"cache lookup failed for opclass %u",
3184 elog(
ERROR,
"cache lookup failed for access method %u",
3217 elog(
ERROR,
"cache lookup failed for access method %u",
3253 elog(
ERROR,
"could not find tuple for amop entry %u",
3318 elog(
ERROR,
"could not find tuple for amproc entry %u",
3382 elog(
ERROR,
"could not find tuple for rule %u",
3428 elog(
ERROR,
"could not find tuple for trigger %u",
3458 elog(
ERROR,
"cache lookup failed for namespace %u",
3477 elog(
ERROR,
"could not find tuple for statistics object %u",
3509 elog(
ERROR,
"cache lookup failed for text search parser %u",
3539 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
3570 elog(
ERROR,
"cache lookup failed for text search template %u",
3601 elog(
ERROR,
"cache lookup failed for text search configuration %u",
3654 elog(
ERROR,
"could not find tuple for role membership %u",
3681 elog(
ERROR,
"cache lookup failed for database %u",
3697 elog(
ERROR,
"cache lookup failed for tablespace %u",
3739 elog(
ERROR,
"cache lookup failed for user mapping %u",
3785 elog(
ERROR,
"could not find tuple for default ACL %u",
3802 switch (
defacl->defaclobjtype)
3807 _(
"default privileges on new relations belonging to role %s in schema %s"),
3811 _(
"default privileges on new relations belonging to role %s"),
3817 _(
"default privileges on new sequences belonging to role %s in schema %s"),
3821 _(
"default privileges on new sequences belonging to role %s"),
3827 _(
"default privileges on new functions belonging to role %s in schema %s"),
3831 _(
"default privileges on new functions belonging to role %s"),
3837 _(
"default privileges on new types belonging to role %s in schema %s"),
3841 _(
"default privileges on new types belonging to role %s"),
3847 _(
"default privileges on new schemas belonging to role %s"),
3853 _(
"default privileges on new large objects belonging to role %s"),
3860 _(
"default privileges belonging to role %s in schema %s"),
3864 _(
"default privileges belonging to role %s"),
3882 elog(
ERROR,
"cache lookup failed for extension %u",
3899 elog(
ERROR,
"cache lookup failed for event trigger %u",
3920 elog(
ERROR,
"cache lookup failed for parameter ACL %u",
3956 elog(
ERROR,
"could not find tuple for policy %u",
3994 &pubname, &nspname))
4016 elog(
ERROR,
"cache lookup failed for publication table %u",
4055 elog(
ERROR,
"could not find tuple for transform %u",
4075 if (buffer.
len == 0)
4114 elog(
ERROR,
"cache lookup failed for relation %u", relid);
4196 elog(
ERROR,
"cache lookup failed for access method %u",
4253 const char *objname =
NULL;
4266 elog(
ERROR,
"return type must be a row type");
4288 elog(
ERROR,
"invalid null namespace in object %u/%u/%d",
4306 elog(
ERROR,
"invalid null name in object %u/%u/%d",
4338 if (objname && objidentity)
4383 elog(
ERROR,
"return type must be a row type");
4391 if (identity ==
NULL)
4697 elog(
ERROR,
"cache lookup failed for relation %u", relid);
4739 if (objectSubId != 0)
4797 elog(
ERROR,
"cache lookup failed for procedure %u", procid);
4875 if (missing_ok && attr ==
NULL)
4881 if (objname && *objname ==
NIL)
4889 *objname =
lappend(*objname, attr);
4940 elog(
ERROR,
"could not find tuple for cast %u",
4974 elog(
ERROR,
"cache lookup failed for collation %u",
5000 elog(
ERROR,
"cache lookup failed for constraint %u",
5048 elog(
ERROR,
"cache lookup failed for conversion %u",
5073 elog(
ERROR,
"could not find tuple for attrdef %u",
5095 elog(
ERROR,
"cache lookup failed for language %u",
5123 if (oprname ==
NULL)
5145 elog(
ERROR,
"cache lookup failed for opclass %u",
5155 elog(
ERROR,
"cache lookup failed for access method %u",
5186 elog(
ERROR,
"cache lookup failed for access method %u",
5223 elog(
ERROR,
"could not find tuple for amop entry %u",
5285 elog(
ERROR,
"could not find tuple for amproc entry %u",
5334 elog(
ERROR,
"could not find tuple for rule %u",
5367 elog(
ERROR,
"could not find tuple for trigger %u",
5394 elog(
ERROR,
"cache lookup failed for namespace %u",
5416 elog(
ERROR,
"cache lookup failed for statistics object %u",
5443 elog(
ERROR,
"cache lookup failed for text search parser %u",
5470 elog(
ERROR,
"cache lookup failed for text search dictionary %u",
5497 elog(
ERROR,
"cache lookup failed for text search template %u",
5524 elog(
ERROR,
"cache lookup failed for text search configuration %u",
5578 elog(
ERROR,
"could not find tuple for pg_auth_members entry %u",
5605 elog(
ERROR,
"cache lookup failed for database %u",
5624 elog(
ERROR,
"cache lookup failed for tablespace %u",
5679 elog(
ERROR,
"cache lookup failed for user mapping %u",
5731 elog(
ERROR,
"could not find tuple for default ACL %u",
5756 switch (
defacl->defaclobjtype)
5780 " on large objects");
5788 *objname =
lappend(*objname, schema);
5805 elog(
ERROR,
"cache lookup failed for extension %u",
5826 elog(
ERROR,
"cache lookup failed for event trigger %u",
5850 elog(
ERROR,
"cache lookup failed for parameter ACL %u",
5878 elog(
ERROR,
"could not find tuple for policy %u",
5947 elog(
ERROR,
"cache lookup failed for publication table %u",
5997 elog(
ERROR,
"could not find tuple for transform %u",
6033 if (objname && *objname ==
NIL)
6034 elog(
ERROR,
"requested object address for unsupported object class %u: text result \"%s\"",
6040 if (buffer.
len == 0)
6043 (objargs ==
NULL || *objargs ==
NIL));
6072 elog(
ERROR,
"cache lookup failed for access method %u",
6108 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 errmsg_internal(const char *fmt,...)
int errdetail(const char *fmt,...)
int errhint(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#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)
int get_object_catcache_name(Oid class_id)
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)
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)
int get_object_catcache_oid(Oid class_id)
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)
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
FormData_pg_am * Form_pg_am
FormData_pg_amop * Form_pg_amop
FormData_pg_amproc * Form_pg_amproc
Oid GetAttrDefaultOid(Oid relid, AttrNumber attnum)
ObjectAddress GetAttrDefaultColumnAddress(Oid attrdefoid)
FormData_pg_auth_members * Form_pg_auth_members
FormData_pg_authid * Form_pg_authid
FormData_pg_cast * Form_pg_cast
FormData_pg_class * Form_pg_class
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)
FormData_pg_constraint * Form_pg_constraint
FormData_pg_conversion * Form_pg_conversion
FormData_pg_default_acl * Form_pg_default_acl
FormData_pg_event_trigger * Form_pg_event_trigger
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)
FormData_pg_opclass * Form_pg_opclass
FormData_pg_opfamily * Form_pg_opfamily
Oid ParameterAclLookup(const char *parameter, bool missing_ok)
FormData_pg_policy * Form_pg_policy
FormData_pg_proc * Form_pg_proc
Publication * GetPublicationByName(const char *pubname, bool missing_ok)
FormData_pg_publication_namespace * Form_pg_publication_namespace
FormData_pg_publication_rel * Form_pg_publication_rel
FormData_pg_rewrite * Form_pg_rewrite
FormData_pg_statistic_ext * Form_pg_statistic_ext
FormData_pg_trigger * Form_pg_trigger
FormData_pg_ts_config * Form_pg_ts_config
FormData_pg_ts_dict * Form_pg_ts_dict
FormData_pg_ts_parser * Form_pg_ts_parser
FormData_pg_ts_template * Form_pg_ts_template
FormData_pg_type * Form_pg_type
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
bool superuser_arg(Oid roleid)
HeapTuple SearchSysCacheCopyAttNum(Oid relid, int16 attnum)
void ReleaseSysCache(HeapTuple tuple)
HeapTuple SearchSysCacheLockedCopy1(int cacheId, Datum key1)
HeapTuple SearchSysCache1(int cacheId, Datum key1)
HeapTuple SearchSysCache3(int cacheId, Datum key1, Datum key2, Datum key3)
Datum SysCacheGetAttr(int cacheId, HeapTuple tup, AttrNumber attributeNumber, bool *isNull)
HeapTuple SearchSysCache2(int cacheId, Datum key1, Datum key2)
HeapTuple SearchSysCache4(int cacheId, Datum key1, Datum key2, Datum key3, Datum key4)
Datum SysCacheGetAttrNotNull(int cacheId, HeapTuple tup, AttrNumber attributeNumber)
#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)