]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_relcheck.h
f37cbe85b08bdf3de2b625bc383d682d36f7f1ea
[postgresql] / src / include / catalog / pg_relcheck.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_relcheck.h
4  *
5  *
6  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * NOTES
10  *        the genbki.sh script reads this file and generates .bki
11  *        information from the DATA() statements.
12  *
13  *-------------------------------------------------------------------------
14  */
15 #ifndef PG_RELCHECK_H
16 #define PG_RELCHECK_H
17
18 /* ----------------
19  *              postgres.h contains the system type definintions and the
20  *              CATALOG(), BOOTSTRAP and DATA() sugar words so this file
21  *              can be read by both genbki.sh and the C compiler.
22  * ----------------
23  */
24
25 /* ----------------
26  *              pg_relcheck definition.  cpp turns this into
27  *              typedef struct FormData_pg_relcheck
28  * ----------------
29  */
30 CATALOG(pg_relcheck) BKI_WITHOUT_OIDS
31 {
32         Oid                     rcrelid;
33         NameData        rcname;
34         text            rcbin;
35         text            rcsrc;
36 } FormData_pg_relcheck;
37
38 /* ----------------
39  *              Form_pg_relcheck corresponds to a pointer to a tuple with
40  *              the format of pg_relcheck relation.
41  * ----------------
42  */
43 typedef FormData_pg_relcheck *Form_pg_relcheck;
44
45 /* ----------------
46  *              compiler constants for pg_relcheck
47  * ----------------
48  */
49 #define Natts_pg_relcheck                               4
50 #define Anum_pg_relcheck_rcrelid                1
51 #define Anum_pg_relcheck_rcname                 2
52 #define Anum_pg_relcheck_rcbin                  3
53 #define Anum_pg_relcheck_rcsrc                  4
54
55 #endif   /* PG_RELCHECK_H */