Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef PG_CLASS_H
00020 #define PG_CLASS_H
00021
00022 #include "catalog/genbki.h"
00023
00024
00025
00026
00027
00028
00029 #define RelationRelationId 1259
00030 #define RelationRelation_Rowtype_Id 83
00031
00032 CATALOG(pg_class,1259) BKI_BOOTSTRAP BKI_ROWTYPE_OID(83) BKI_SCHEMA_MACRO
00033 {
00034 NameData relname;
00035 Oid relnamespace;
00036 Oid reltype;
00037
00038 Oid reloftype;
00039
00040 Oid relowner;
00041 Oid relam;
00042 Oid relfilenode;
00043
00044
00045 Oid reltablespace;
00046 int32 relpages;
00047 float4 reltuples;
00048 int32 relallvisible;
00049
00050 Oid reltoastrelid;
00051 Oid reltoastidxid;
00052 bool relhasindex;
00053 bool relisshared;
00054 char relpersistence;
00055 char relkind;
00056 int16 relnatts;
00057
00058
00059
00060
00061
00062
00063 int16 relchecks;
00064 bool relhasoids;
00065 bool relhaspkey;
00066 bool relhasrules;
00067 bool relhastriggers;
00068 bool relhassubclass;
00069 TransactionId relfrozenxid;
00070 TransactionId relminmxid;
00071
00072
00073 #ifdef CATALOG_VARLEN
00074
00075 aclitem relacl[1];
00076 text reloptions[1];
00077 #endif
00078 } FormData_pg_class;
00079
00080
00081 #define CLASS_TUPLE_SIZE \
00082 (offsetof(FormData_pg_class,relminmxid) + sizeof(TransactionId))
00083
00084
00085
00086
00087
00088
00089 typedef FormData_pg_class *Form_pg_class;
00090
00091
00092
00093
00094
00095
00096 #define Natts_pg_class 28
00097 #define Anum_pg_class_relname 1
00098 #define Anum_pg_class_relnamespace 2
00099 #define Anum_pg_class_reltype 3
00100 #define Anum_pg_class_reloftype 4
00101 #define Anum_pg_class_relowner 5
00102 #define Anum_pg_class_relam 6
00103 #define Anum_pg_class_relfilenode 7
00104 #define Anum_pg_class_reltablespace 8
00105 #define Anum_pg_class_relpages 9
00106 #define Anum_pg_class_reltuples 10
00107 #define Anum_pg_class_relallvisible 11
00108 #define Anum_pg_class_reltoastrelid 12
00109 #define Anum_pg_class_reltoastidxid 13
00110 #define Anum_pg_class_relhasindex 14
00111 #define Anum_pg_class_relisshared 15
00112 #define Anum_pg_class_relpersistence 16
00113 #define Anum_pg_class_relkind 17
00114 #define Anum_pg_class_relnatts 18
00115 #define Anum_pg_class_relchecks 19
00116 #define Anum_pg_class_relhasoids 20
00117 #define Anum_pg_class_relhaspkey 21
00118 #define Anum_pg_class_relhasrules 22
00119 #define Anum_pg_class_relhastriggers 23
00120 #define Anum_pg_class_relhassubclass 24
00121 #define Anum_pg_class_relfrozenxid 25
00122 #define Anum_pg_class_relminmxid 26
00123 #define Anum_pg_class_relacl 27
00124 #define Anum_pg_class_reloptions 28
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139 DATA(insert OID = 1247 ( pg_type PGNSP 71 0 PGUID 0 0 0 0 0 0 0 0 f f p r 30 0 t f f f f 3 1 _null_ _null_ ));
00140 DESCR("");
00141 DATA(insert OID = 1249 ( pg_attribute PGNSP 75 0 PGUID 0 0 0 0 0 0 0 0 f f p r 21 0 f f f f f 3 1 _null_ _null_ ));
00142 DESCR("");
00143 DATA(insert OID = 1255 ( pg_proc PGNSP 81 0 PGUID 0 0 0 0 0 0 0 0 f f p r 27 0 t f f f f 3 1 _null_ _null_ ));
00144 DESCR("");
00145 DATA(insert OID = 1259 ( pg_class PGNSP 83 0 PGUID 0 0 0 0 0 0 0 0 f f p r 28 0 t f f f f 3 1 _null_ _null_ ));
00146 DESCR("");
00147
00148
00149 #define RELKIND_RELATION 'r'
00150 #define RELKIND_INDEX 'i'
00151 #define RELKIND_SEQUENCE 'S'
00152 #define RELKIND_TOASTVALUE 't'
00153 #define RELKIND_VIEW 'v'
00154 #define RELKIND_COMPOSITE_TYPE 'c'
00155 #define RELKIND_FOREIGN_TABLE 'f'
00156 #define RELKIND_MATVIEW 'm'
00157
00158 #define RELPERSISTENCE_PERMANENT 'p'
00159 #define RELPERSISTENCE_UNLOGGED 'u'
00160 #define RELPERSISTENCE_TEMP 't'
00161
00162 #endif