Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6164b4b

Browse files
committed
Some trivial adjustments in comments for struct RelationData.
1 parent3f7a518 commit6164b4b

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
boolrd_isvalid;/* relcache entry is valid */
135135
charrd_indexvalid;/* state of rd_indexlist: 0 = not valid, 1 =
136136
* valid, 2 = temporarily forced */
137-
SubTransactionIdrd_createSubid;/* rel was created in current xact */
138-
SubTransactionIdrd_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+
SubTransactionIdrd_createSubid;/* rel was created in current xact */
148+
SubTransactionIdrd_newRelfilenodeSubid;/* new relfilenode assigned in
149+
* current xact */
150+
150151
Form_pg_classrd_rel;/* RELATION tuple */
151152
TupleDescrd_att;/* tuple descriptor */
152153
Oidrd_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_indexrd_index;/* pg_index tuple describing this index */
171+
/* use "struct" here to avoid needing to include htup.h: */
170172
structHeapTupleData*rd_indextuple;/* all of pg_index tuple */
171-
/* "struct HeapTupleData *" avoids need to include htup.h here*/
172173
Form_pg_amrd_am;/* pg_am tuple for index's AM */
173174

174175
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp