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

Go to the source code of this file.

Macros

#define InitPrivsObjIndexId   3395
 

Typedefs

typedef FormData_pg_init_privsForm_pg_init_privs
 
typedef enum InitPrivsType InitPrivsType
 

Enumerations

enum  InitPrivsType { INITPRIVS_INITDB = 'i', INITPRIVS_EXTENSION = 'e' }
 

Functions

 CATALOG (pg_init_privs, 3394, InitPrivsRelationId)
 
 DECLARE_TOAST (pg_init_privs, 4155, 4156)
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_init_privs_o_c_o_index, 3395, on pg_init_privs using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops))
 

Variables

 FormData_pg_init_privs
 

Macro Definition Documentation

◆ InitPrivsObjIndexId

#define InitPrivsObjIndexId   3395

Definition at line 69 of file pg_init_privs.h.

Referenced by DeleteInitPrivs(), and recordExtensionInitPrivWorker().

Typedef Documentation

◆ Form_pg_init_privs

Definition at line 64 of file pg_init_privs.h.

◆ InitPrivsType

Enumeration Type Documentation

◆ InitPrivsType

Enumerator
INITPRIVS_INITDB 
INITPRIVS_EXTENSION 

Definition at line 78 of file pg_init_privs.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_init_privs  ,
3394  ,
InitPrivsRelationId   
)

Definition at line 46 of file pg_init_privs.h.

References BKI_FORCE_NOT_NULL, and BKI_LOOKUP.

47 {
48  Oid objoid; /* OID of object itself */
49  Oid classoid BKI_LOOKUP(pg_class); /* OID of table containing
50  * object */
51  int32 objsubid; /* column number, or 0 if not used */
52  char privtype; /* from initdb or extension? */
53 
54 #ifdef CATALOG_VARLEN /* variable-length fields start here */
55  aclitem initprivs[1] BKI_FORCE_NOT_NULL; /* initial privs on object */
56 #endif
FormData_pg_init_privs
Definition: pg_init_privs.h:57
unsigned int Oid
Definition: postgres_ext.h:31
signed int int32
Definition: c.h:429
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_init_privs  ,
4155  ,
4156   
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_init_privs_o_c_o_index  ,
3395  ,
on pg_init_privs using   btreeobjoid oid_ops, classoid oid_ops, objsubid int4_ops 
)

Variable Documentation

◆ FormData_pg_init_privs

FormData_pg_init_privs

Definition at line 57 of file pg_init_privs.h.