1
/*-------------------------------------------------------------------------
4
* definition of the system "shadow" relation (pg_shadow)
5
* along with the relation's initial contents.
6
* pg_user is now a public accessible view on pg_shadow.
9
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
10
* Portions Copyright (c) 1994, Regents of the University of California
12
* $PostgreSQL: pgsql/src/include/catalog/pg_shadow.h,v 1.27 2004-12-31 22:03:26 pgsql Exp $
15
* the genbki.sh script reads this file and generates .bki
16
* information from the DATA() statements.
18
* WHENEVER the definition for pg_shadow changes, the
19
* view creation of pg_user must be changed in initdb.sh!
21
*-------------------------------------------------------------------------
28
* pg_shadow definition. cpp turns this into
29
* typedef struct FormData_pg_shadow
32
CATALOG(pg_shadow) BOOTSTRAP BKI_SHARED_RELATION BKI_WITHOUT_OIDS
37
bool usesuper; /* read this field via superuser() only */
40
/* remaining fields may be null; use heap_getattr to read them! */
42
int4 valuntil; /* actually abstime */
47
* Form_pg_shadow corresponds to a pointer to a tuple with
48
* the format of pg_shadow relation.
51
typedef FormData_pg_shadow *Form_pg_shadow;
54
* compiler constants for pg_shadow
57
#define Natts_pg_shadow 8
58
#define Anum_pg_shadow_usename 1
59
#define Anum_pg_shadow_usesysid 2
60
#define Anum_pg_shadow_usecreatedb 3
61
#define Anum_pg_shadow_usesuper 4
62
#define Anum_pg_shadow_usecatupd 5
63
#define Anum_pg_shadow_passwd 6
64
#define Anum_pg_shadow_valuntil 7
65
#define Anum_pg_shadow_useconfig 8
68
* initial contents of pg_shadow
70
* The uppercase quantities will be replaced at initdb time with
74
DATA(insert ( "POSTGRES" PGUID t t t _null_ _null_ _null_ ));
76
#define BOOTSTRAP_USESYSID 1
78
#endif /* PG_SHADOW_H */