@@ -1067,18 +1067,26 @@ typedef struct RangeTblEntry
1067
1067
* relation. This allows plans referencing AFTER trigger transition
1068
1068
* tables to be invalidated if the underlying table is altered.
1069
1069
*/
1070
- Oid relid ; /* OID of the relation */
1071
- bool inh ; /* inheritance requested? */
1072
- char relkind ; /* relation kind (see pg_class.relkind) */
1073
- int rellockmode ; /* lock level that query requires on the rel */
1074
- Index perminfoindex ; /* index of RTEPermissionInfo entry, or 0 */
1075
- struct TableSampleClause * tablesample ; /* sampling info, or NULL */
1070
+ /* OID of the relation */
1071
+ Oid relid ;
1072
+ /* inheritance requested? */
1073
+ bool inh ;
1074
+ /* relation kind (see pg_class.relkind) */
1075
+ char relkind ;
1076
+ /* lock level that query requires on the rel */
1077
+ int rellockmode ;
1078
+ /* index of RTEPermissionInfo entry, or 0 */
1079
+ Index perminfoindex ;
1080
+ /* sampling info, or NULL */
1081
+ struct TableSampleClause * tablesample ;
1076
1082
1077
1083
/*
1078
1084
* Fields valid for a subquery RTE (else NULL):
1079
1085
*/
1080
- Query * subquery ; /* the sub-query */
1081
- bool security_barrier ; /* is from security_barrier view? */
1086
+ /* the sub-query */
1087
+ Query * subquery ;
1088
+ /* is from security_barrier view? */
1089
+ bool security_barrier ;
1082
1090
1083
1091
/*
1084
1092
* Fields valid for a join RTE (else NULL/zero):
@@ -1123,11 +1131,15 @@ typedef struct RangeTblEntry
1123
1131
* merged columns could not be dropped); this is not accounted for in
1124
1132
* joinleftcols/joinrighttcols.
1125
1133
*/
1126
- JoinType jointype ; /* type of join */
1127
- int joinmergedcols ; /* number of merged (JOIN USING) columns */
1128
- List * joinaliasvars ; /* list of alias-var expansions */
1129
- List * joinleftcols ; /* left-side input column numbers */
1130
- List * joinrightcols ; /* right-side input column numbers */
1134
+ JoinType jointype ;
1135
+ /* number of merged (JOIN USING) columns */
1136
+ int joinmergedcols ;
1137
+ /* list of alias-var expansions */
1138
+ List * joinaliasvars ;
1139
+ /* left-side input column numbers */
1140
+ List * joinleftcols ;
1141
+ /* right-side input column numbers */
1142
+ List * joinrightcols ;
1131
1143
1132
1144
/*
1133
1145
* join_using_alias is an alias clause attached directly to JOIN/USING. It
@@ -1144,8 +1156,10 @@ typedef struct RangeTblEntry
1144
1156
* implicit, and must be accounted for "by hand" in places such as
1145
1157
* expandRTE().
1146
1158
*/
1147
- List * functions ; /* list of RangeTblFunction nodes */
1148
- bool funcordinality ; /* is this called WITH ORDINALITY? */
1159
+ /* list of RangeTblFunction nodes */
1160
+ List * functions ;
1161
+ /* is this called WITH ORDINALITY? */
1162
+ bool funcordinality ;
1149
1163
1150
1164
/*
1151
1165
* Fields valid for a TableFunc RTE (else NULL):
@@ -1155,14 +1169,18 @@ typedef struct RangeTblEntry
1155
1169
/*
1156
1170
* Fields valid for a values RTE (else NIL):
1157
1171
*/
1158
- List * values_lists ; /* list of expression lists */
1172
+ /* list of expression lists */
1173
+ List * values_lists ;
1159
1174
1160
1175
/*
1161
1176
* Fields valid for a CTE RTE (else NULL/zero):
1162
1177
*/
1163
- char * ctename ; /* name of the WITH list item */
1164
- Index ctelevelsup ; /* number of query levels up */
1165
- bool self_reference ; /* is this a recursive self-reference? */
1178
+ /* name of the WITH list item */
1179
+ char * ctename ;
1180
+ /* number of query levels up */
1181
+ Index ctelevelsup ;
1182
+ /* is this a recursive self-reference? */
1183
+ bool self_reference ;
1166
1184
1167
1185
/*
1168
1186
* Fields valid for CTE, VALUES, ENR, and TableFunc RTEs (else NIL):
@@ -1182,24 +1200,34 @@ typedef struct RangeTblEntry
1182
1200
* all three lists (as well as an empty-string entry in eref). Testing
1183
1201
* for zero coltype is the standard way to detect a dropped column.
1184
1202
*/
1185
- List * coltypes ; /* OID list of column type OIDs */
1186
- List * coltypmods ; /* integer list of column typmods */
1187
- List * colcollations ; /* OID list of column collation OIDs */
1203
+ /* OID list of column type OIDs */
1204
+ List * coltypes ;
1205
+ /* integer list of column typmods */
1206
+ List * coltypmods ;
1207
+ /* OID list of column collation OIDs */
1208
+ List * colcollations ;
1188
1209
1189
1210
/*
1190
1211
* Fields valid for ENR RTEs (else NULL/zero):
1191
1212
*/
1192
- char * enrname ; /* name of ephemeral named relation */
1193
- Cardinality enrtuples ; /* estimated or actual from caller */
1213
+ /* name of ephemeral named relation */
1214
+ char * enrname ;
1215
+ /* estimated or actual from caller */
1216
+ Cardinality enrtuples ;
1194
1217
1195
1218
/*
1196
1219
* Fields valid in all RTEs:
1197
1220
*/
1198
- Alias * alias ; /* user-written alias clause, if any */
1199
- Alias * eref ; /* expanded reference names */
1200
- bool lateral ; /* was LATERAL specified? */
1201
- bool inFromCl ; /* present in FROM clause? */
1202
- List * securityQuals ; /* security barrier quals to apply, if any */
1221
+ /* user-written alias clause, if any */
1222
+ Alias * alias ;
1223
+ /* expanded reference names */
1224
+ Alias * eref ;
1225
+ /* was LATERAL specified? */
1226
+ bool lateral ;
1227
+ /* present in FROM clause? */
1228
+ bool inFromCl ;
1229
+ /* security barrier quals to apply, if any */
1230
+ List * securityQuals ;
1203
1231
} RangeTblEntry ;
1204
1232
1205
1233
/*
0 commit comments