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-2017, PostgreSQL Global Development Group 9 * Portions Copyright (c) 1994, Regents of the University of California 10 * 11 * src/include/catalog/pg_inherits.h 12 * 13 * NOTES 14 * the genbki.pl 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 #include "catalog/genbki.h" 23 24 /* ---------------- 25 * pg_inherits definition. cpp turns this into 26 * typedef struct FormData_pg_inherits 27 * ---------------- 28 */ 29 #define InheritsRelationId 2611 30 31 CATALOG(pg_inherits,2611) BKI_WITHOUT_OIDS 32 { 33 Oid inhrelid; 34 Oid inhparent; 35 int32 inhseqno; 36 } FormData_pg_inherits; 37 38 /* ---------------- 39 * Form_pg_inherits corresponds to a pointer to a tuple with 40 * the format of pg_inherits relation. 41 * ---------------- 42 */ 43 typedef FormData_pg_inherits *Form_pg_inherits; 44 45 /* ---------------- 46 * compiler constants for pg_inherits 47 * ---------------- 48 */ 49 #define Natts_pg_inherits 3 50 #define Anum_pg_inherits_inhrelid 1 51 #define Anum_pg_inherits_inhparent 2 52 #define Anum_pg_inherits_inhseqno 3 53 54 /* ---------------- 55 * pg_inherits has no initial contents 56 * ---------------- 57 */ 58 59 #endif /* PG_INHERITS_H */ 60