PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_authid.h File Reference
#include "catalog/genbki.h"
Include dependency graph for pg_authid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define timestamptz   int
 
#define AuthIdRelationId   1260
 
#define AuthIdRelation_Rowtype_Id   2842
 
#define Natts_pg_authid   11
 
#define Anum_pg_authid_rolname   1
 
#define Anum_pg_authid_rolsuper   2
 
#define Anum_pg_authid_rolinherit   3
 
#define Anum_pg_authid_rolcreaterole   4
 
#define Anum_pg_authid_rolcreatedb   5
 
#define Anum_pg_authid_rolcanlogin   6
 
#define Anum_pg_authid_rolreplication   7
 
#define Anum_pg_authid_rolbypassrls   8
 
#define Anum_pg_authid_rolconnlimit   9
 
#define Anum_pg_authid_rolpassword   10
 
#define Anum_pg_authid_rolvaliduntil   11
 
#define BOOTSTRAP_SUPERUSERID   10
 
#define DEFAULT_ROLE_MONITOR   3373
 
#define DEFAULT_ROLE_READ_ALL_SETTINGS   3374
 
#define DEFAULT_ROLE_READ_ALL_STATS   3375
 
#define DEFAULT_ROLE_STAT_SCAN_TABLES   3377
 
#define DEFAULT_ROLE_SIGNAL_BACKENDID   4200
 

Typedefs

typedef FormData_pg_authidForm_pg_authid
 

Functions

 CATALOG (pg_authid, 1260) BKI_SHARED_RELATION BKI_ROWTYPE_OID(2842) BKI_SCHEMA_MACRO
 
 DATA (insert OID=10("POSTGRES"t t t t t t t-1 _null_ _null_))
 

Variables

 FormData_pg_authid
 

Macro Definition Documentation

#define Anum_pg_authid_rolbypassrls   8

Definition at line 86 of file pg_authid.h.

Referenced by AlterRole(), and CreateRole().

#define Anum_pg_authid_rolcanlogin   6

Definition at line 84 of file pg_authid.h.

Referenced by AlterRole(), and CreateRole().

#define Anum_pg_authid_rolconnlimit   9

Definition at line 87 of file pg_authid.h.

Referenced by AlterRole(), and CreateRole().

#define Anum_pg_authid_rolcreatedb   5

Definition at line 83 of file pg_authid.h.

Referenced by AlterRole(), and CreateRole().

#define Anum_pg_authid_rolcreaterole   4

Definition at line 82 of file pg_authid.h.

Referenced by AlterRole(), and CreateRole().

#define Anum_pg_authid_rolinherit   3

Definition at line 81 of file pg_authid.h.

Referenced by AlterRole(), and CreateRole().

#define Anum_pg_authid_rolname   1

Definition at line 79 of file pg_authid.h.

Referenced by CreateRole(), and RenameRole().

#define Anum_pg_authid_rolpassword   10

Definition at line 88 of file pg_authid.h.

Referenced by AlterRole(), CreateRole(), get_role_password(), and RenameRole().

#define Anum_pg_authid_rolreplication   7

Definition at line 85 of file pg_authid.h.

Referenced by AlterRole(), and CreateRole().

#define Anum_pg_authid_rolsuper   2

Definition at line 80 of file pg_authid.h.

Referenced by AlterRole(), and CreateRole().

#define Anum_pg_authid_rolvaliduntil   11

Definition at line 89 of file pg_authid.h.

Referenced by AlterRole(), CreateRole(), and get_role_password().

#define AuthIdRelation_Rowtype_Id   2842

Definition at line 43 of file pg_authid.h.

Referenced by RelationCacheInitializePhase2().

#define DEFAULT_ROLE_MONITOR   3373

Definition at line 110 of file pg_authid.h.

#define DEFAULT_ROLE_READ_ALL_SETTINGS   3374
#define DEFAULT_ROLE_READ_ALL_STATS   3375
#define DEFAULT_ROLE_SIGNAL_BACKENDID   4200

Definition at line 114 of file pg_authid.h.

Referenced by pg_signal_backend().

#define DEFAULT_ROLE_STAT_SCAN_TABLES   3377

Definition at line 113 of file pg_authid.h.

Referenced by pgrowlocks().

#define Natts_pg_authid   11

Definition at line 78 of file pg_authid.h.

Referenced by AlterRole(), CreateRole(), RelationCacheInitializePhase2(), and RenameRole().

#define timestamptz   int

Definition at line 34 of file pg_authid.h.

Referenced by CATALOG().

Typedef Documentation

Definition at line 72 of file pg_authid.h.

Function Documentation

CATALOG ( pg_authid  ,
1260   
)

Definition at line 45 of file pg_authid.h.

References timestamptz.

46 {
47  NameData rolname; /* name of role */
48  bool rolsuper; /* read this field via superuser() only! */
49  bool rolinherit; /* inherit privileges from other roles? */
50  bool rolcreaterole; /* allowed to create more roles? */
51  bool rolcreatedb; /* allowed to create databases? */
52  bool rolcanlogin; /* allowed to log in as session user? */
53  bool rolreplication; /* role used for streaming replication */
54  bool rolbypassrls; /* bypasses row level security? */
55  int32 rolconnlimit; /* max connections allowed (-1=no limit) */
56 
57  /* remaining fields may be null; use heap_getattr to read them! */
58 #ifdef CATALOG_VARLEN /* variable-length fields start here */
59  text rolpassword; /* password, if any */
60  timestamptz rolvaliduntil; /* password expiration time, if any */
61 #endif
signed int int32
Definition: c.h:256
Definition: c.h:493
#define timestamptz
Definition: pg_authid.h:34
FormData_pg_authid
Definition: pg_authid.h:62
Definition: c.h:439
DATA ( insert  OID = 10("POSTGRES"t t t t t t t-1 _null_ _null_))

Variable Documentation

FormData_pg_authid

Definition at line 62 of file pg_authid.h.