PostgreSQL Source Code  git master
pg_policy.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_policy_d.h"
Include dependency graph for pg_policy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef FormData_pg_policyForm_pg_policy
 

Functions

 CATALOG (pg_policy, 3256, PolicyRelationId)
 
 DECLARE_TOAST (pg_policy, 4167, 4168)
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_policy_oid_index, 3257, PolicyOidIndexId, pg_policy, btree(oid oid_ops))
 
 DECLARE_UNIQUE_INDEX (pg_policy_polrelid_polname_index, 3258, PolicyPolrelidPolnameIndexId, pg_policy, btree(polrelid oid_ops, polname name_ops))
 

Variables

 FormData_pg_policy
 

Typedef Documentation

◆ Form_pg_policy

Definition at line 51 of file pg_policy.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_policy  ,
3256  ,
PolicyRelationId   
)

Definition at line 29 of file pg_policy.h.

30 {
31  Oid oid; /* oid */
32  NameData polname; /* Policy name. */
33  Oid polrelid BKI_LOOKUP(pg_class); /* Oid of the relation with
34  * policy. */
35  char polcmd; /* One of ACL_*_CHR, or '*' for all */
36  bool polpermissive; /* restrictive or permissive policy */
37 
38 #ifdef CATALOG_VARLEN
39  /* Roles to which the policy is applied; zero means PUBLIC */
40  Oid polroles[1] BKI_LOOKUP_OPT(pg_authid) BKI_FORCE_NOT_NULL;
41  pg_node_tree polqual; /* Policy quals. */
42  pg_node_tree polwithcheck; /* WITH CHECK quals. */
43 #endif
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
#define BKI_LOOKUP_OPT(catalog)
Definition: genbki.h:47
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
FormData_pg_policy
Definition: pg_policy.h:44
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:741

References BKI_FORCE_NOT_NULL, BKI_LOOKUP, and BKI_LOOKUP_OPT.

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_policy  ,
4167  ,
4168   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_policy_polrelid_polname_index  ,
3258  ,
PolicyPolrelidPolnameIndexId  ,
pg_policy  ,
btree(polrelid oid_ops, polname name_ops)   
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_policy_oid_index  ,
3257  ,
PolicyOidIndexId  ,
pg_policy  ,
btree(oid oid_ops)   
)

Variable Documentation

◆ FormData_pg_policy

FormData_pg_policy

Definition at line 44 of file pg_policy.h.