1998-02-25 14:09:49 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* pg_shadow.h
|
1998-02-25 14:09:49 +01:00
|
|
|
* definition of the system "shadow" relation (pg_shadow)
|
|
|
|
* along with the relation's initial contents.
|
1998-02-26 05:46:47 +01:00
|
|
|
* pg_user is now a public accessible view on pg_shadow.
|
1998-02-25 14:09:49 +01:00
|
|
|
*
|
|
|
|
*
|
2001-01-24 20:43:33 +01:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1998-02-25 14:09:49 +01:00
|
|
|
*
|
2001-08-10 20:57:42 +02:00
|
|
|
* $Id: pg_shadow.h,v 1.13 2001/08/10 18:57:41 tgl Exp $
|
1998-02-25 14:09:49 +01:00
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* the genbki.sh script reads this file and generates .bki
|
|
|
|
* information from the DATA() statements.
|
|
|
|
*
|
1998-02-26 05:46:47 +01:00
|
|
|
* WHENEVER the definition for pg_shadow changes, the
|
|
|
|
* view creation of pg_user must be changed in initdb.sh!
|
1998-02-25 14:09:49 +01:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_SHADOW_H
|
|
|
|
#define PG_SHADOW_H
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* pg_shadow definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_shadow
|
|
|
|
* ----------------
|
|
|
|
*/
|
2001-08-10 20:57:42 +02:00
|
|
|
CATALOG(pg_shadow) BOOTSTRAP BKI_WITHOUT_OIDS
|
1998-02-25 14:09:49 +01:00
|
|
|
{
|
|
|
|
NameData usename;
|
|
|
|
int4 usesysid;
|
|
|
|
bool usecreatedb;
|
|
|
|
bool usetrace;
|
|
|
|
bool usesuper;
|
|
|
|
bool usecatupd;
|
|
|
|
text passwd;
|
|
|
|
int4 valuntil;
|
|
|
|
} FormData_pg_shadow;
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* Form_pg_shadow corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_shadow relation.
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
typedef FormData_pg_shadow *Form_pg_shadow;
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* compiler constants for pg_shadow
|
|
|
|
* ----------------
|
|
|
|
*/
|
2000-06-12 05:41:03 +02:00
|
|
|
#define Natts_pg_shadow 8
|
1998-02-25 14:09:49 +01:00
|
|
|
#define Anum_pg_shadow_usename 1
|
|
|
|
#define Anum_pg_shadow_usesysid 2
|
|
|
|
#define Anum_pg_shadow_usecreatedb 3
|
2000-06-12 05:41:03 +02:00
|
|
|
#define Anum_pg_shadow_usetrace 4
|
|
|
|
#define Anum_pg_shadow_usesuper 5
|
|
|
|
#define Anum_pg_shadow_usecatupd 6
|
|
|
|
#define Anum_pg_shadow_passwd 7
|
|
|
|
#define Anum_pg_shadow_valuntil 8
|
1998-02-25 14:09:49 +01:00
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* initial contents of pg_shadow
|
1999-12-17 02:05:31 +01:00
|
|
|
*
|
|
|
|
* The uppercase quantities will be replaced at initdb time with
|
|
|
|
* user choices.
|
1998-02-25 14:09:49 +01:00
|
|
|
* ----------------
|
|
|
|
*/
|
2001-08-10 20:57:42 +02:00
|
|
|
DATA(insert ( "POSTGRES" PGUID t t t t _null_ _null_ ));
|
1998-02-25 14:09:49 +01:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PG_SHADOW_H */
|