mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 11:16:50 +02:00
bf56f0759b
default, but OIDS are removed from many system catalogs that don't need them. Some interesting side effects: TOAST pointers are 20 bytes not 32 now; pg_description has a three-column key instead of one. Bugs fixed in passing: BINARY cursors work again; pg_class.relhaspkey has some usefulness; pg_dump dumps comments on indexes, rules, and triggers in a valid order. initdb forced.
75 lines
2.0 KiB
C
75 lines
2.0 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* pg_shadow.h
|
|
* definition of the system "shadow" relation (pg_shadow)
|
|
* along with the relation's initial contents.
|
|
* pg_user is now a public accessible view on pg_shadow.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: pg_shadow.h,v 1.13 2001/08/10 18:57:41 tgl Exp $
|
|
*
|
|
* NOTES
|
|
* the genbki.sh script reads this file and generates .bki
|
|
* information from the DATA() statements.
|
|
*
|
|
* WHENEVER the definition for pg_shadow changes, the
|
|
* view creation of pg_user must be changed in initdb.sh!
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PG_SHADOW_H
|
|
#define PG_SHADOW_H
|
|
|
|
|
|
/* ----------------
|
|
* pg_shadow definition. cpp turns this into
|
|
* typedef struct FormData_pg_shadow
|
|
* ----------------
|
|
*/
|
|
CATALOG(pg_shadow) BOOTSTRAP BKI_WITHOUT_OIDS
|
|
{
|
|
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
|
|
* ----------------
|
|
*/
|
|
#define Natts_pg_shadow 8
|
|
#define Anum_pg_shadow_usename 1
|
|
#define Anum_pg_shadow_usesysid 2
|
|
#define Anum_pg_shadow_usecreatedb 3
|
|
#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
|
|
|
|
/* ----------------
|
|
* initial contents of pg_shadow
|
|
*
|
|
* The uppercase quantities will be replaced at initdb time with
|
|
* user choices.
|
|
* ----------------
|
|
*/
|
|
DATA(insert ( "POSTGRES" PGUID t t t t _null_ _null_ ));
|
|
|
|
#endif /* PG_SHADOW_H */
|