#include "catalog/genbki.h"
#include "catalog/pg_parameter_acl_d.h"
Go to the source code of this file.
|
| CATALOG (pg_parameter_acl, 6243, ParameterAclRelationId) BKI_SHARED_RELATION |
|
| DECLARE_TOAST_WITH_MACRO (pg_parameter_acl, 6244, 6245, PgParameterAclToastTable, PgParameterAclToastIndex) |
|
| DECLARE_UNIQUE_INDEX (pg_parameter_acl_parname_index, 6246, ParameterAclParnameIndexId, pg_parameter_acl, btree(parname text_ops)) |
|
| DECLARE_UNIQUE_INDEX_PKEY (pg_parameter_acl_oid_index, 6247, ParameterAclOidIndexId, pg_parameter_acl, btree(oid oid_ops)) |
|
| MAKE_SYSCACHE (PARAMETERACLNAME, pg_parameter_acl_parname_index, 4) |
|
| MAKE_SYSCACHE (PARAMETERACLOID, pg_parameter_acl_oid_index, 4) |
|
Oid | ParameterAclLookup (const char *parameter, bool missing_ok) |
|
Oid | ParameterAclCreate (const char *parameter) |
|
◆ Form_pg_parameter_acl
◆ CATALOG()
CATALOG |
( |
pg_parameter_acl |
, |
|
|
6243 |
, |
|
|
ParameterAclRelationId |
|
|
) |
| |
◆ DECLARE_TOAST_WITH_MACRO()
DECLARE_TOAST_WITH_MACRO |
( |
pg_parameter_acl |
, |
|
|
6244 |
, |
|
|
6245 |
, |
|
|
PgParameterAclToastTable |
, |
|
|
PgParameterAclToastIndex |
|
|
) |
| |
◆ DECLARE_UNIQUE_INDEX()
DECLARE_UNIQUE_INDEX |
( |
pg_parameter_acl_parname_index |
, |
|
|
6246 |
, |
|
|
ParameterAclParnameIndexId |
, |
|
|
pg_parameter_acl |
, |
|
|
btree(parname text_ops) |
|
|
) |
| |
◆ DECLARE_UNIQUE_INDEX_PKEY()
DECLARE_UNIQUE_INDEX_PKEY |
( |
pg_parameter_acl_oid_index |
, |
|
|
6247 |
, |
|
|
ParameterAclOidIndexId |
, |
|
|
pg_parameter_acl |
, |
|
|
btree(oid oid_ops) |
|
|
) |
| |
◆ MAKE_SYSCACHE() [1/2]
MAKE_SYSCACHE |
( |
PARAMETERACLNAME |
, |
|
|
pg_parameter_acl_parname_index |
, |
|
|
4 |
|
|
) |
| |
◆ MAKE_SYSCACHE() [2/2]
MAKE_SYSCACHE |
( |
PARAMETERACLOID |
, |
|
|
pg_parameter_acl_oid_index |
, |
|
|
4 |
|
|
) |
| |
◆ ParameterAclCreate()
Oid ParameterAclCreate |
( |
const char * |
parameter | ) |
|
Definition at line 68 of file pg_parameter_acl.c.
76 bool nulls[Natts_pg_parameter_acl] = {0};
96 ParameterAclOidIndexId,
97 Anum_pg_parameter_acl_oid);
99 values[Anum_pg_parameter_acl_parname - 1] =
101 nulls[Anum_pg_parameter_acl_paracl - 1] =
true;
static Datum values[MAXATTR]
Oid GetNewOidWithIndex(Relation relation, Oid indexId, AttrNumber oidcolumn)
void check_GUC_name_for_parameter_acl(const char *name)
char * convert_GUC_name_for_parameter_acl(const char *name)
HeapTuple heap_form_tuple(TupleDesc tupleDescriptor, const Datum *values, const bool *isnull)
void heap_freetuple(HeapTuple htup)
void CatalogTupleInsert(Relation heapRel, HeapTuple tup)
static Datum PointerGetDatum(const void *X)
static Datum ObjectIdGetDatum(Oid X)
#define RelationGetDescr(relation)
void table_close(Relation relation, LOCKMODE lockmode)
Relation table_open(Oid relationId, LOCKMODE lockmode)
text * cstring_to_text(const char *s)
References CatalogTupleInsert(), check_GUC_name_for_parameter_acl(), convert_GUC_name_for_parameter_acl(), cstring_to_text(), GetNewOidWithIndex(), heap_form_tuple(), heap_freetuple(), NoLock, ObjectIdGetDatum(), PointerGetDatum(), RelationGetDescr, RowExclusiveLock, table_close(), table_open(), and values.
Referenced by objectNamesToOids().
◆ ParameterAclLookup()
Oid ParameterAclLookup |
( |
const char * |
parameter, |
|
|
bool |
missing_ok |
|
) |
| |
Definition at line 35 of file pg_parameter_acl.c.
49 (
errcode(ERRCODE_UNDEFINED_OBJECT),
50 errmsg(
"parameter ACL \"%s\" does not exist", parameter)));
#define OidIsValid(objectId)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
void pfree(void *pointer)
#define GetSysCacheOid1(cacheId, oidcol, key1)
References convert_GUC_name_for_parameter_acl(), cstring_to_text(), ereport, errcode(), errmsg(), ERROR, GetSysCacheOid1, OidIsValid, pfree(), and PointerGetDatum().
Referenced by get_object_address_unqualified(), and objectNamesToOids().
◆ FormData_pg_parameter_acl
FormData_pg_parameter_acl |