Skip to content

Commit 6164b4b

Browse files
committed
Some trivial adjustments in comments for struct RelationData.
1 parent 3f7a518 commit 6164b4b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/include/utils/rel.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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
134134
bool rd_isvalid; /* relcache entry is valid */
135135
char 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+
150151
Form_pg_class rd_rel; /* RELATION tuple */
151152
TupleDesc rd_att; /* tuple descriptor */
152153
Oid rd_id; /* relation's object id */
@@ -167,8 +168,8 @@ typedef struct RelationData
167168

168169
/* These are non-NULL only for an index relation: */
169170
Form_pg_index rd_index; /* pg_index tuple describing this index */
171+
/* use "struct" here to avoid needing to include htup.h: */
170172
struct HeapTupleData *rd_indextuple; /* all of pg_index tuple */
171-
/* "struct HeapTupleData *" avoids need to include htup.h here */
172173
Form_pg_am rd_am; /* pg_am tuple for index's AM */
173174

174175
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy