]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_inherits.h
Massive commit to run PGINDENT on all *.c and *.h files.
[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  * Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: pg_inherits.h,v 1.3 1997/09/07 04:56:51 momjian Exp $
11  *
12  * NOTES
13  *        the genbki.sh script reads this file and generates .bki
14  *        information from the DATA() statements.
15  *
16  *-------------------------------------------------------------------------
17  */
18 #ifndef PG_INHERITS_H
19 #define PG_INHERITS_H
20
21 /* ----------------
22  *              postgres.h contains the system type definintions and the
23  *              CATALOG(), BOOTSTRAP and DATA() sugar words so this file
24  *              can be read by both genbki.sh and the C compiler.
25  * ----------------
26  */
27
28 /* ----------------
29  *              pg_inherits definition.  cpp turns this into
30  *              typedef struct FormData_pg_inherits
31  * ----------------
32  */
33 CATALOG(pg_inherits)
34 {
35         Oid                             inhrel;
36         Oid                             inhparent;
37         int4                    inhseqno;
38 } FormData_pg_inherits;
39
40 /* ----------------
41  *              Form_pg_inherits corresponds to a pointer to a tuple with
42  *              the format of pg_inherits relation.
43  * ----------------
44  */
45 typedef FormData_pg_inherits *InheritsTupleForm;
46
47 /* ----------------
48  *              compiler constants for pg_inherits
49  * ----------------
50  */
51 #define Natts_pg_inherits                               3
52 #define Anum_pg_inherits_inhrel                 1
53 #define Anum_pg_inherits_inhparent              2
54 #define Anum_pg_inherits_inhseqno               3
55
56
57 #endif                                                  /* PG_INHERITS_H */