~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/catalog/pg_shadow.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * pg_shadow.h
 
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.
 
7
 *
 
8
 *
 
9
 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
 
10
 * Portions Copyright (c) 1994, Regents of the University of California
 
11
 *
 
12
 * $PostgreSQL: pgsql/src/include/catalog/pg_shadow.h,v 1.27 2004-12-31 22:03:26 pgsql Exp $
 
13
 *
 
14
 * NOTES
 
15
 *        the genbki.sh script reads this file and generates .bki
 
16
 *        information from the DATA() statements.
 
17
 *
 
18
 *                WHENEVER the definition for pg_shadow changes, the
 
19
 *                view creation of pg_user must be changed in initdb.sh!
 
20
 *
 
21
 *-------------------------------------------------------------------------
 
22
 */
 
23
#ifndef PG_SHADOW_H
 
24
#define PG_SHADOW_H
 
25
 
 
26
 
 
27
/* ----------------
 
28
 *              pg_shadow definition.  cpp turns this into
 
29
 *              typedef struct FormData_pg_shadow
 
30
 * ----------------
 
31
 */
 
32
CATALOG(pg_shadow) BOOTSTRAP BKI_SHARED_RELATION BKI_WITHOUT_OIDS
 
33
{
 
34
        NameData        usename;
 
35
        int4            usesysid;
 
36
        bool            usecreatedb;
 
37
        bool            usesuper;               /* read this field via superuser() only */
 
38
        bool            usecatupd;
 
39
 
 
40
        /* remaining fields may be null; use heap_getattr to read them! */
 
41
        text            passwd;
 
42
        int4            valuntil;               /* actually abstime */
 
43
        text            useconfig[1];
 
44
} FormData_pg_shadow;
 
45
 
 
46
/* ----------------
 
47
 *              Form_pg_shadow corresponds to a pointer to a tuple with
 
48
 *              the format of pg_shadow relation.
 
49
 * ----------------
 
50
 */
 
51
typedef FormData_pg_shadow *Form_pg_shadow;
 
52
 
 
53
/* ----------------
 
54
 *              compiler constants for pg_shadow
 
55
 * ----------------
 
56
 */
 
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
 
66
 
 
67
/* ----------------
 
68
 *              initial contents of pg_shadow
 
69
 *
 
70
 * The uppercase quantities will be replaced at initdb time with
 
71
 * user choices.
 
72
 * ----------------
 
73
 */
 
74
DATA(insert ( "POSTGRES" PGUID t t t _null_ _null_ _null_ ));
 
75
 
 
76
#define BOOTSTRAP_USESYSID 1
 
77
 
 
78
#endif   /* PG_SHADOW_H */