OSDN Git Service

20ddc7181ece3b4f080dcda2f0ae6f1dd1f1e2cb
[pg-rex/syncrep.git] / src / include / catalog / pg_attrdef.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_attrdef.h
4  *        definition of the system "attribute defaults" relation (pg_attrdef)
5  *        along with the relation's initial contents.
6  *
7  *
8  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * $Id: pg_attrdef.h,v 1.14 2003/03/10 22:28:19 tgl Exp $
12  *
13  * NOTES
14  *        the genbki.sh script reads this file and generates .bki
15  *        information from the DATA() statements.
16  *
17  *-------------------------------------------------------------------------
18  */
19 #ifndef PG_ATTRDEF_H
20 #define PG_ATTRDEF_H
21
22 /* ----------------
23  *              postgres.h contains the system type definitions and the
24  *              CATALOG(), BOOTSTRAP and DATA() sugar words so this file
25  *              can be read by both genbki.sh and the C compiler.
26  * ----------------
27  */
28
29 /* ----------------
30  *              pg_attrdef definition.  cpp turns this into
31  *              typedef struct FormData_pg_attrdef
32  * ----------------
33  */
34 CATALOG(pg_attrdef)
35 {
36         Oid                     adrelid;
37         int2            adnum;
38         text            adbin;
39         text            adsrc;
40 } FormData_pg_attrdef;
41
42 /* ----------------
43  *              Form_pg_attrdef corresponds to a pointer to a tuple with
44  *              the format of pg_attrdef relation.
45  * ----------------
46  */
47 typedef FormData_pg_attrdef *Form_pg_attrdef;
48
49 /* ----------------
50  *              compiler constants for pg_attrdef
51  * ----------------
52  */
53 #define Natts_pg_attrdef                                4
54 #define Anum_pg_attrdef_adrelid                 1
55 #define Anum_pg_attrdef_adnum                   2
56 #define Anum_pg_attrdef_adbin                   3
57 #define Anum_pg_attrdef_adsrc                   4
58
59 #endif   /* PG_ATTRDEF_H */