PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_policy.h File Reference
#include "catalog/genbki.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.

Macros

#define PolicyRelationId   3256
 
#define Natts_pg_policy   7
 
#define Anum_pg_policy_polname   1
 
#define Anum_pg_policy_polrelid   2
 
#define Anum_pg_policy_polcmd   3
 
#define Anum_pg_policy_polpermissive   4
 
#define Anum_pg_policy_polroles   5
 
#define Anum_pg_policy_polqual   6
 
#define Anum_pg_policy_polwithcheck   7
 

Typedefs

typedef FormData_pg_policyForm_pg_policy
 

Functions

 CATALOG (pg_policy, 3256)
 

Variables

 FormData_pg_policy
 

Macro Definition Documentation

#define Anum_pg_policy_polcmd   3

Definition at line 49 of file pg_policy.h.

Referenced by AlterPolicy(), CreatePolicy(), and RelationBuildRowSecurity().

#define Anum_pg_policy_polname   1
#define Anum_pg_policy_polpermissive   4

Definition at line 50 of file pg_policy.h.

Referenced by CreatePolicy(), and RelationBuildRowSecurity().

#define Anum_pg_policy_polqual   6
#define Anum_pg_policy_polrelid   2
#define Anum_pg_policy_polroles   5
#define Anum_pg_policy_polwithcheck   7
#define Natts_pg_policy   7

Definition at line 46 of file pg_policy.h.

Referenced by AlterPolicy(), CreatePolicy(), and RemoveRoleFromObjectPolicy().

Typedef Documentation

Definition at line 40 of file pg_policy.h.

Function Documentation

CATALOG ( pg_policy  ,
3256   
)

Definition at line 21 of file pg_policy.h.

22 {
23  NameData polname; /* Policy name. */
24  Oid polrelid; /* Oid of the relation with policy. */
25  char polcmd; /* One of ACL_*_CHR, or '*' for all */
26  bool polpermissive; /* restrictive or permissive policy */
27 
28 #ifdef CATALOG_VARLEN
29  Oid polroles[1]; /* Roles associated with policy, not-NULL */
30  pg_node_tree polqual; /* Policy quals. */
31  pg_node_tree polwithcheck; /* WITH CHECK quals. */
32 #endif
FormData_pg_policy
Definition: pg_policy.h:33
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:493

Variable Documentation

FormData_pg_policy

Definition at line 33 of file pg_policy.h.