00001 /*------------------------------------------------------------------------- 00002 * 00003 * pg_inherits.h 00004 * definition of the system "inherits" relation (pg_inherits) 00005 * along with the relation's initial contents. 00006 * 00007 * 00008 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group 00009 * Portions Copyright (c) 1994, Regents of the University of California 00010 * 00011 * src/include/catalog/pg_inherits.h 00012 * 00013 * NOTES 00014 * the genbki.pl script reads this file and generates .bki 00015 * information from the DATA() statements. 00016 * 00017 *------------------------------------------------------------------------- 00018 */ 00019 #ifndef PG_INHERITS_H 00020 #define PG_INHERITS_H 00021 00022 #include "catalog/genbki.h" 00023 00024 /* ---------------- 00025 * pg_inherits definition. cpp turns this into 00026 * typedef struct FormData_pg_inherits 00027 * ---------------- 00028 */ 00029 #define InheritsRelationId 2611 00030 00031 CATALOG(pg_inherits,2611) BKI_WITHOUT_OIDS 00032 { 00033 Oid inhrelid; 00034 Oid inhparent; 00035 int32 inhseqno; 00036 } FormData_pg_inherits; 00037 00038 /* ---------------- 00039 * Form_pg_inherits corresponds to a pointer to a tuple with 00040 * the format of pg_inherits relation. 00041 * ---------------- 00042 */ 00043 typedef FormData_pg_inherits *Form_pg_inherits; 00044 00045 /* ---------------- 00046 * compiler constants for pg_inherits 00047 * ---------------- 00048 */ 00049 #define Natts_pg_inherits 3 00050 #define Anum_pg_inherits_inhrelid 1 00051 #define Anum_pg_inherits_inhparent 2 00052 #define Anum_pg_inherits_inhseqno 3 00053 00054 /* ---------------- 00055 * pg_inherits has no initial contents 00056 * ---------------- 00057 */ 00058 00059 #endif /* PG_INHERITS_H */