]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_inherits.h
First phase of project to use fixed OIDs for all system catalogs and
[postgresql] / 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-2005, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * $PostgreSQL: pgsql/src/include/catalog/pg_inherits.h,v 1.20 2005/04/14 01:38:20 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(), BKI_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 #define InheritsRelationId  2611
35
36 CATALOG(pg_inherits,2611) BKI_WITHOUT_OIDS
37 {
38         Oid                     inhrelid;
39         Oid                     inhparent;
40         int4            inhseqno;
41 } FormData_pg_inherits;
42
43 /* ----------------
44  *              Form_pg_inherits corresponds to a pointer to a tuple with
45  *              the format of pg_inherits relation.
46  * ----------------
47  */
48 typedef FormData_pg_inherits *Form_pg_inherits;
49
50 /* ----------------
51  *              compiler constants for pg_inherits
52  * ----------------
53  */
54 #define Natts_pg_inherits                               3
55 #define Anum_pg_inherits_inhrelid               1
56 #define Anum_pg_inherits_inhparent              2
57 #define Anum_pg_inherits_inhseqno               3
58
59 #endif   /* PG_INHERITS_H */