1 /*-------------------------------------------------------------------------
4 * definition of the system "policy" relation (pg_policy)
7 * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/catalog/pg_policy.h
13 * The Catalog.pm module reads this file and derives schema
16 *-------------------------------------------------------------------------
21 #include "catalog/genbki.h"
22 #include "catalog/pg_policy_d.h"
25 * pg_policy definition. cpp turns this into
26 * typedef struct FormData_pg_policy
29 CATALOG(pg_policy,3256,PolicyRelationId)
31 NameData polname; /* Policy name. */
32 Oid polrelid; /* Oid of the relation with policy. */
33 char polcmd; /* One of ACL_*_CHR, or '*' for all */
34 bool polpermissive; /* restrictive or permissive policy */
37 Oid polroles[1]; /* Roles associated with policy, not-NULL */
38 pg_node_tree polqual; /* Policy quals. */
39 pg_node_tree polwithcheck; /* WITH CHECK quals. */
44 * Form_pg_policy corresponds to a pointer to a row with
45 * the format of pg_policy relation.
48 typedef FormData_pg_policy *Form_pg_policy;
50 #endif /* PG_POLICY_H */