PostgreSQL Source Code  git master
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

◆ Anum_pg_policy_polcmd

#define Anum_pg_policy_polcmd   3

Definition at line 49 of file pg_policy.h.

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

◆ Anum_pg_policy_polname

#define Anum_pg_policy_polname   1

◆ Anum_pg_policy_polpermissive

#define Anum_pg_policy_polpermissive   4

Definition at line 50 of file pg_policy.h.

Referenced by CreatePolicy(), and RelationBuildRowSecurity().

◆ Anum_pg_policy_polqual

#define Anum_pg_policy_polqual   6

◆ Anum_pg_policy_polrelid

#define Anum_pg_policy_polrelid   2

◆ Anum_pg_policy_polroles

#define Anum_pg_policy_polroles   5

◆ Anum_pg_policy_polwithcheck

#define Anum_pg_policy_polwithcheck   7

◆ Natts_pg_policy

#define Natts_pg_policy   7

Definition at line 46 of file pg_policy.h.

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

◆ PolicyRelationId

Typedef Documentation

◆ Form_pg_policy

Definition at line 40 of file pg_policy.h.

Function Documentation

◆ CATALOG()

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:551

Variable Documentation

◆ FormData_pg_policy

FormData_pg_policy

Definition at line 33 of file pg_policy.h.