pg_user.h 3.12 KB
Newer Older
1 2 3
/*-------------------------------------------------------------------------
 *
 * pg_user.h--
4 5
 *	  definition of the system "user" relation (pg_user)
 *	  along with the relation's initial contents.
6 7 8 9
 *
 *
 * Copyright (c) 1994, Regents of the University of California
 *
10
 * $Id: pg_user.h,v 1.9 1998/02/19 17:19:51 momjian Exp $
11 12
 *
 * NOTES
13 14
 *	  the genbki.sh script reads this file and generates .bki
 *	  information from the DATA() statements.
15 16 17 18 19 20
 *
 *-------------------------------------------------------------------------
 */
#ifndef PG_USER_H
#define PG_USER_H

21 22 23

/* Prototype required for superuser() from superuser.c */

24
bool		superuser(void);
25 26

/* ----------------
27 28
 *		pg_user definition.  cpp turns this into
 *		typedef struct FormData_pg_user
29
 * ----------------
30 31 32
 */
CATALOG(pg_user) BOOTSTRAP
{
33 34 35 36 37 38
	NameData	usename;
	int4		usesysid;
	bool		usecreatedb;
	bool		usetrace;
	bool		usesuper;
	bool		usecatupd;
39 40
	text		passwd;
	int4		valuntil;
41 42 43
} FormData_pg_user;

/* ----------------
44 45
 *		Form_pg_user corresponds to a pointer to a tuple with
 *		the format of pg_user relation.
46 47
 * ----------------
 */
48
typedef FormData_pg_user *Form_pg_user;
49 50

/* ----------------
51
 *		compiler constants for pg_user
52 53
 * ----------------
 */
54
#define Natts_pg_user					8
55 56 57 58 59 60
#define Anum_pg_user_usename			1
#define Anum_pg_user_usesysid			2
#define Anum_pg_user_usecreatedb		3
#define Anum_pg_user_usetrace			4
#define Anum_pg_user_usesuper			5
#define Anum_pg_user_usecatupd			6
61
#define Anum_pg_user_passwd				7
62
#define Anum_pg_user_valuntil			8
63 64

/* ----------------
65
 *		initial contents of pg_user
66 67
 * ----------------
 */
68
DATA(insert OID = 0 ( postgres PGUID t t t t _null_ 2116994400 ));
69 70 71 72 73

BKI_BEGIN
#ifdef ALLOW_PG_GROUP
BKI_END

74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
DATA(insert OID = 0 ( mike 799 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( mao 1806 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( hellers 1089 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( joey 5209 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( jolly 5443 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( sunita 6559 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( paxson 3029 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( marc 2435 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( jiangwu 6124 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( aoki 2360 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( avi 31080 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( kristin 1123 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( andrew 5229 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( nobuko 5493 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( hartzell 6676 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( devine 6724 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( boris 6396 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( sklower 354 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( marcel 31113 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( ginger 3692 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( woodruff 31026 t t t t _null_ 2116994400 ));
DATA(insert OID = 0 ( searcher 8261 t t t t _null_ 2116994400 ));
96

97
BKI_BEGIN
98
#endif							/* ALLOW_PG_GROUP */
99 100
BKI_END

101
#endif							/* PG_USER_H */