1/*-------------------------------------------------------------------------
4 * definition of the system catalog for default ACLs of new objects
8 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/include/catalog/pg_default_acl.h
14 * The Catalog.pm module reads this file and derives schema
17 *-------------------------------------------------------------------------
19#ifndef PG_DEFAULT_ACL_H
20#define PG_DEFAULT_ACL_H
23#include "catalog/pg_default_acl_d.h" /* IWYU pragma: export */
26 * pg_default_acl definition. cpp turns this into
27 * typedef struct FormData_pg_default_acl
30 CATALOG(pg_default_acl,826,DefaultAclRelationId)
33 Oid defaclrole
BKI_LOOKUP(pg_authid);
/* OID of role owning this
37 char defaclobjtype;
/* see DEFACLOBJ_xxx constants below */
39#ifdef CATALOG_VARLEN /* variable-length fields start here */
46 * Form_pg_default_acl corresponds to a pointer to a tuple with
47 * the format of pg_default_acl relation.
54 DECLARE_UNIQUE_INDEX(pg_default_acl_role_nsp_obj_index, 827, DefaultAclRoleNspObjIndexId, pg_default_acl, btree(defaclrole oid_ops, defaclnamespace oid_ops, defaclobjtype char_ops));
59#ifdef EXPOSE_TO_CLIENT_CODE
62 * Types of objects for which the user is allowed to specify default
63 * permissions through pg_default_acl. These codes are used in the
64 * defaclobjtype column.
66#define DEFACLOBJ_RELATION 'r' /* table, view */
67#define DEFACLOBJ_SEQUENCE 'S' /* sequence */
68#define DEFACLOBJ_FUNCTION 'f' /* function */
69#define DEFACLOBJ_TYPE 'T' /* type */
70#define DEFACLOBJ_NAMESPACE 'n' /* namespace */
71#define DEFACLOBJ_LARGEOBJECT 'L' /* large object */
73#endif /* EXPOSE_TO_CLIENT_CODE */
75#endif /* PG_DEFAULT_ACL_H */
#define BKI_LOOKUP(catalog)
#define BKI_LOOKUP_OPT(catalog)
#define BKI_FORCE_NOT_NULL
CATALOG(pg_default_acl, 826, DefaultAclRelationId)
DECLARE_TOAST(pg_default_acl, 4143, 4144)
DECLARE_UNIQUE_INDEX(pg_default_acl_role_nsp_obj_index, 827, DefaultAclRoleNspObjIndexId, pg_default_acl, btree(defaclrole oid_ops, defaclnamespace oid_ops, defaclobjtype char_ops))
MAKE_SYSCACHE(DEFACLROLENSPOBJ, pg_default_acl_role_nsp_obj_index, 8)
FormData_pg_default_acl * Form_pg_default_acl
DECLARE_UNIQUE_INDEX_PKEY(pg_default_acl_oid_index, 828, DefaultAclOidIndexId, pg_default_acl, btree(oid oid_ops))