head 1.16; access; symbols Version_2_1:1.5 Version_2:1.2; locks; strict; comment @ * @; 1.16 date 92.06.23.18.25.57; author mer; state Exp; branches; next 1.15; 1.15 date 92.05.21.23.23.29; author sunita; state Exp; branches; next 1.14; 1.14 date 92.05.21.23.02.29; author mer; state Exp; branches; next 1.13; 1.13 date 92.01.10.17.27.07; author jolly; state Exp; branches; next 1.12; 1.12 date 91.11.10.20.47.27; author clarsen; state Exp; branches; next 1.11; 1.11 date 91.10.10.21.34.47; author dpassage; state Exp; branches; next 1.10; 1.10 date 91.10.04.15.56.58; author joey; state Exp; branches; next 1.9; 1.9 date 91.07.15.14.42.51; author caetta; state Exp; branches; next 1.8; 1.8 date 91.03.25.12.32.48; author mer; state Exp; branches; next 1.7; 1.7 date 91.03.25.12.30.58; author mer; state Exp; branches; next 1.6; 1.6 date 91.03.22.16.26.25; author hong; state Exp; branches; next 1.5; 1.5 date 91.02.21.18.47.49; author mer; state Exp; branches; next 1.4; 1.4 date 90.08.17.08.52.15; author cimarron; state Exp; branches; next 1.3; 1.3 date 90.08.08.08.20.41; author cimarron; state Exp; branches; next 1.2; 1.2 date 90.07.29.03.10.08; author kemnitz; state Version_2; branches; next 1.1; 1.1 date 90.06.18.16.16.59; author cimarron; state Exp; branches; next ; desc @@ 1.16 log @2 things - set postgres user id to PGUID to be replace dynamically at installation time and 2nd add ifdefs to remove pg group when we ship @ text @/* ---------------------------------------------------------------- * FILE * pg_user.h * * DESCRIPTION * definition of the system "user" relation (pg_user) * along with the relation's initial contents. * * NOTES * the genbki.sh script reads this file and generates .bki * information from the DATA() statements. * * IDENTIFICATION * $Header: /private/mer/pg2/src/lib/H/catalog/RCS/pg_user.h,v 1.15 1992/05/21 23:23:29 sunita Exp mer $ * ---------------------------------------------------------------- */ #ifndef PgUserIncluded #define PgUserIncluded 1 /* include this only once */ /* ---------------- * postgres.h contains the system type definintions and the * CATALOG(), BOOTSTRAP and DATA() sugar words so this file * can be read by both genbki.sh and the C compiler. * ---------------- */ #include "tmp/postgres.h" /* ---------------- * pg_user definition. cpp turns this into * typedef struct FormData_pg_user * ---------------- */ #define USER_NAMESIZE 16 CATALOG(pg_user) BOOTSTRAP { char16 usename; int2 usesysid; bool usecreatedb; bool usetrace; bool usesuper; bool usecatupd; } FormData_pg_user; /* ---------------- * Form_pg_user corresponds to a pointer to a tuple with * the format of pg_user relation. * ---------------- */ typedef FormData_pg_user *Form_pg_user; /* ---------------- * compiler constants for pg_user * ---------------- */ #define Name_pg_user "pg_user" #define Natts_pg_user 6 #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 /* ---------------- * initial contents of pg_user * ---------------- */ DATA(insert OID = PGUID ( postgres PGUID t t t t )); BKI_BEGIN #ifdef ALLOW_PG_GROUP BKI_END DATA(insert OID = 799 ( mike 799 t t t t )); DATA(insert OID = 1511 ( sp 1511 t t t t )); DATA(insert OID = 2359 ( cimarron 2359 t t t t )); DATA(insert OID = 2469 ( hong 2469 t t t t )); DATA(insert OID = 1806 ( mao 1806 t t t t )); DATA(insert OID = 2697 ( margo 2697 t t t t )); DATA(insert OID = 1517 ( sullivan 1517 t t t t )); DATA(insert OID = 3491 ( kemnitz 3491 t t t t )); DATA(insert OID = 3898 ( choi 3898 t t t t )); DATA(insert OID = 3918 ( glass 3918 t t t t )); DATA(insert OID = 4613 ( mer 4613 t t t t )); DATA(insert OID = 4616 ( dpassage 4616 t t t t )); DATA(insert OID = 5059 ( caetta 5059 t t t t )); DATA(insert OID = 5209 ( joey 5209 t t t t )); DATA(insert OID = 5568 ( clarsen 5568 t t t t )); DATA(insert OID = 5443 ( jolly 5443 t t t t )); DATA(insert OID = 5443 ( sunita 6559 t t t t )); BKI_BEGIN #endif ALLOW_PG_GROUP BKI_END /* ---------------- * old definition of struct user * ---------------- */ #ifndef struct_user_Defined #define struct_user_Defined 1 struct user { char usename[16]; int16 usesysid; /* XXX uint16 better? */ Boolean usecreatedb; Boolean usetrace; Boolean usesuper; Boolean usecatupd; }; #endif struct_user_Defined #endif PgUserIncluded @ 1.15 log @sunita not sarita!! @ text @d14 1 a14 1 * $Header: /home2/sunita/postgres/src/lib/H/catalog/RCS/pg_user.h,v 1.14 1992/05/21 23:02:29 mer Exp sunita $ d68 6 a73 1 DATA(insert OID = 6 ( postgres 6 t t t t )); d91 4 @ 1.14 log @add sunita to pg_user @ text @d14 1 a14 1 * $Header: /private/mer/pg.latest/src/lib/H/catalog/RCS/pg_user.h,v 1.13 1992/01/10 17:27:07 jolly Exp mer $ d85 1 a85 1 DATA(insert OID = 5443 ( sarita 6559 t t t t )); @ 1.13 log @added jolly to pg_user @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.12 91/11/10 20:47:27 clarsen Exp Locker: jolly $ d85 1 @ 1.12 log @ prototypes.h @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.11 91/10/10 21:34:47 dpassage Exp Locker: clarsen $ d84 1 @ 1.11 log @added dpassage (jen #2) @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.10 91/10/04 15:56:58 joey Exp Locker: dpassage $ d83 1 @ 1.10 log @add joey @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.9 91/07/15 14:42:51 caetta Exp Locker: joey $ d80 1 @ 1.9 log @add caetta, get rid of goh, ong, jhingran @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.8 91/03/25 12:32:48 mer Exp Locker: caetta $ d81 1 @ 1.8 log @added mer to pg_user @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.7 91/03/25 12:30:58 mer Exp Locker: mer $ a70 1 DATA(insert OID = 943 ( jhingran 943 t t t t )); a71 2 DATA(insert OID = 1994 ( goh 1994 t t t t )); DATA(insert OID = 2802 ( ong 2802 t t t t )); a77 1 DATA(insert OID = 3665 ( plai 3665 t t t t )); d80 1 @ 1.7 log @added myself to pg_user @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.6 91/03/22 16:26:25 hong Exp Locker: mer $ d83 1 a83 1 DATA(insert OID = 3977 ( mer 3977 t t t t )); @ 1.6 log @added Adam Glass to pg_user @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.5 91/02/21 18:47:49 mer Exp Locker: hong $ d83 1 @ 1.5 log @added a #define for a user name size constant @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.4 90/08/17 08:52:15 cimarron Exp Locker: mer $ d82 1 @ 1.4 log @added pathnames to #include statements @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.3 90/08/08 08:20:41 cimarron Exp Locker: cimarron $ d33 2 @ 1.3 log @reorganized some header files @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.2 90/07/29 03:10:08 kemnitz Version_2 Locker: cimarron $ d26 1 a26 1 #include "postgres.h" @ 1.2 log @Got rid of old users. @ text @d14 1 a14 1 * $Header: RCS/pg_user.h,v 1.1 90/06/18 16:16:59 cimarron Exp Locker: kemnitz $ d21 3 a23 3 * catmacros.h defines the CATALOG(), BOOTSTRAP and * DATA() sugar words so this file can be read by both * genbki.sh and the C compiler. d26 1 a26 1 #include "catalog/catmacros.h" @ 1.1 log @Initial version. The new setup is for lib/H/catalog to contain a pg_xxx.h file for each pg_xxx database in the system catalogs. This .h file contains CATALOG() and DATA() statements used to generate typedefs for the catalog tuple structures as well as initialization scripts for createdb. @ text @d14 1 a14 1 * $Header$ a66 5 DATA(insert OID = 234 ( anton 234 t t t t )); DATA(insert OID = 2360 ( aoki 2360 t t t t )); DATA(insert OID = 2007 ( chinheng 2007 t t t t )); DATA(insert OID = 348 ( grady 348 t t t t )); DATA(insert OID = 313 ( hirohama 313 t t t t )); a67 4 DATA(insert OID = 2216 ( philip 2216 t t t t )); DATA(insert OID = 249 ( raj 249 t t t t )); DATA(insert OID = 997 ( serge 997 t t t t )); DATA(insert OID = 1604 ( wensel 1604 t t t t )); @