77 * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
88 * Portions Copyright (c) 1994, Regents of the University of California
99 *
10- * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.118 2010/01/02 16:58:10 momjian Exp $
10+ * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.119 2010/01/10 22:19:17 tgl Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -134,9 +134,6 @@ typedef struct RelationData
134134bool rd_isvalid ;/* relcache entry is valid */
135135char rd_indexvalid ;/* state of rd_indexlist: 0 = not valid, 1 =
136136 * valid, 2 = temporarily forced */
137- SubTransactionId rd_createSubid ;/* rel was created in current xact */
138- SubTransactionId rd_newRelfilenodeSubid ;/* new relfilenode assigned in
139- * current xact */
140137
141138/*
142139 * rd_createSubid is the ID of the highest subtransaction the rel has
@@ -147,6 +144,10 @@ typedef struct RelationData
147144 * subtransaction the relfilenode change has survived into, or zero if not
148145 * changed in the current transaction (or we have forgotten changing it).
149146 */
147+ SubTransactionId rd_createSubid ;/* rel was created in current xact */
148+ SubTransactionId rd_newRelfilenodeSubid ;/* new relfilenode assigned in
149+ * current xact */
150+
150151Form_pg_class rd_rel ;/* RELATION tuple */
151152TupleDesc rd_att ;/* tuple descriptor */
152153Oid rd_id ;/* relation's object id */
@@ -167,8 +168,8 @@ typedef struct RelationData
167168
168169/* These are non-NULL only for an index relation: */
169170Form_pg_index rd_index ;/* pg_index tuple describing this index */
171+ /* use "struct" here to avoid needing to include htup.h: */
170172struct HeapTupleData * rd_indextuple ;/* all of pg_index tuple */
171- /* "struct HeapTupleData *" avoids need to include htup.h here*/
172173Form_pg_am rd_am ;/* pg_am tuple for index's AM */
173174
174175/*