OSDN Git Service

a1618710ff5b0cfddb62cf508d6e01209719de99
[pg-rex/syncrep.git] / src / include / catalog / pg_inherits.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_inherits.h
4  *        definition of the system "inherits" relation (pg_inherits)
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_inherits.h,v 1.15 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_INHERITS_H
20 #define PG_INHERITS_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_inherits definition.  cpp turns this into
31  *              typedef struct FormData_pg_inherits
32  * ----------------
33  */
34 CATALOG(pg_inherits) BKI_WITHOUT_OIDS
35 {
36         Oid                     inhrelid;
37         Oid                     inhparent;
38         int4            inhseqno;
39 } FormData_pg_inherits;
40
41 /* ----------------
42  *              Form_pg_inherits corresponds to a pointer to a tuple with
43  *              the format of pg_inherits relation.
44  * ----------------
45  */
46 typedef FormData_pg_inherits *Form_pg_inherits;
47
48 /* ----------------
49  *              compiler constants for pg_inherits
50  * ----------------
51  */
52 #define Natts_pg_inherits                               3
53 #define Anum_pg_inherits_inhrelid               1
54 #define Anum_pg_inherits_inhparent              2
55 #define Anum_pg_inherits_inhseqno               3
56
57 #endif   /* PG_INHERITS_H */