PostgreSQL Source Code  git master
pg_parameter_acl.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_parameter_acl.h
4  * definition of the "configuration parameter ACL" system catalog
5  * (pg_parameter_acl).
6  *
7  *
8  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * src/include/catalog/pg_parameter_acl.h
12  *
13  * NOTES
14  * The Catalog.pm module reads this file and derives schema
15  * information.
16  *
17  *-------------------------------------------------------------------------
18  */
19 #ifndef PG_PARAMETER_ACL_H
20 #define PG_PARAMETER_ACL_H
21 
22 #include "catalog/genbki.h"
23 #include "catalog/pg_parameter_acl_d.h"
24 
25 /* ----------------
26  * pg_parameter_acl definition. cpp turns this into
27  * typedef struct FormData_pg_parameter_acl
28  * ----------------
29  */
30 CATALOG(pg_parameter_acl,6243,ParameterAclRelationId) BKI_SHARED_RELATION
31 {
32  Oid oid; /* oid */
33 
34 #ifdef CATALOG_VARLEN /* variable-length fields start here */
35  /* name of parameter */
36  text parname BKI_FORCE_NOT_NULL;
37 
38  /* access permissions */
39  aclitem paracl[1] BKI_DEFAULT(_null_);
40 #endif
42 
43 
44 /* ----------------
45  * Form_pg_parameter_acl corresponds to a pointer to a tuple with
46  * the format of pg_parameter_acl relation.
47  * ----------------
48  */
50 
51 DECLARE_TOAST_WITH_MACRO(pg_parameter_acl, 6244, 6245, PgParameterAclToastTable, PgParameterAclToastIndex);
52 
53 DECLARE_UNIQUE_INDEX(pg_parameter_acl_parname_index, 6246, ParameterAclParnameIndexId, pg_parameter_acl, btree(parname text_ops));
54 DECLARE_UNIQUE_INDEX_PKEY(pg_parameter_acl_oid_index, 6247, ParameterAclOidIndexId, pg_parameter_acl, btree(oid oid_ops));
55 
56 MAKE_SYSCACHE(PARAMETERACLNAME, pg_parameter_acl_parname_index, 4);
57 MAKE_SYSCACHE(PARAMETERACLOID, pg_parameter_acl_oid_index, 4);
58 
59 extern Oid ParameterAclLookup(const char *parameter, bool missing_ok);
60 extern Oid ParameterAclCreate(const char *parameter);
61 
62 #endif /* PG_PARAMETER_ACL_H */
#define BKI_DEFAULT(value)
Definition: genbki.h:35
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
#define BKI_SHARED_RELATION
Definition: genbki.h:27
CATALOG(pg_parameter_acl, 6243, ParameterAclRelationId) BKI_SHARED_RELATION
DECLARE_UNIQUE_INDEX(pg_parameter_acl_parname_index, 6246, ParameterAclParnameIndexId, pg_parameter_acl, btree(parname text_ops))
DECLARE_TOAST_WITH_MACRO(pg_parameter_acl, 6244, 6245, PgParameterAclToastTable, PgParameterAclToastIndex)
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)
FormData_pg_parameter_acl
Oid ParameterAclLookup(const char *parameter, bool missing_ok)
FormData_pg_parameter_acl * Form_pg_parameter_acl
Oid ParameterAclCreate(const char *parameter)
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:687