@@ -936,7 +936,7 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
936
936
/*
937
937
* CE failed, so finish copying/modifying targetlist and join quals.
938
938
*
939
- * Note : the resulting childrel->reltarget. exprs may contain arbitrary
939
+ * NB : the resulting childrel->reltarget-> exprs may contain arbitrary
940
940
* expressions, which otherwise would not occur in a rel's targetlist.
941
941
* Code that might be looking at an appendrel child must cope with
942
942
* such. (Normally, a rel's targetlist would only include Vars and
@@ -947,9 +947,9 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
947
947
adjust_appendrel_attrs (root ,
948
948
(Node * ) rel -> joininfo ,
949
949
appinfo );
950
- childrel -> reltarget . exprs = (List * )
950
+ childrel -> reltarget -> exprs = (List * )
951
951
adjust_appendrel_attrs (root ,
952
- (Node * ) rel -> reltarget . exprs ,
952
+ (Node * ) rel -> reltarget -> exprs ,
953
953
appinfo );
954
954
955
955
/*
@@ -994,7 +994,7 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
994
994
Assert (childrel -> rows > 0 );
995
995
996
996
parent_rows += childrel -> rows ;
997
- parent_size += childrel -> reltarget . width * childrel -> rows ;
997
+ parent_size += childrel -> reltarget -> width * childrel -> rows ;
998
998
999
999
/*
1000
1000
* Accumulate per-column estimates too. We need not do anything for
@@ -1004,8 +1004,8 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
1004
1004
*
1005
1005
* By construction, child's targetlist is 1-to-1 with parent's.
1006
1006
*/
1007
- forboth (parentvars , rel -> reltarget . exprs ,
1008
- childvars , childrel -> reltarget . exprs )
1007
+ forboth (parentvars , rel -> reltarget -> exprs ,
1008
+ childvars , childrel -> reltarget -> exprs )
1009
1009
{
1010
1010
Var * parentvar = (Var * ) lfirst (parentvars );
1011
1011
Node * childvar = (Node * ) lfirst (childvars );
@@ -1040,7 +1040,7 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
1040
1040
1041
1041
Assert (parent_rows > 0 );
1042
1042
rel -> rows = parent_rows ;
1043
- rel -> reltarget . width = rint (parent_size / parent_rows );
1043
+ rel -> reltarget -> width = rint (parent_size / parent_rows );
1044
1044
for (i = 0 ; i < nattrs ; i ++ )
1045
1045
rel -> attr_widths [i ] = rint (parent_attrsizes [i ] / parent_rows );
1046
1046
@@ -1515,7 +1515,7 @@ set_dummy_rel_pathlist(RelOptInfo *rel)
1515
1515
{
1516
1516
/* Set dummy size estimates --- we leave attr_widths[] as zeroes */
1517
1517
rel -> rows = 0 ;
1518
- rel -> reltarget . width = 0 ;
1518
+ rel -> reltarget -> width = 0 ;
1519
1519
1520
1520
/* Discard any pre-existing paths; no further need for them */
1521
1521
rel -> pathlist = NIL ;
@@ -1771,7 +1771,7 @@ set_function_pathlist(PlannerInfo *root, RelOptInfo *rel, RangeTblEntry *rte)
1771
1771
* not reference the ordinality column, or at least not in any way
1772
1772
* that would be interesting for sorting.
1773
1773
*/
1774
- foreach (lc , rel -> reltarget . exprs )
1774
+ foreach (lc , rel -> reltarget -> exprs )
1775
1775
{
1776
1776
Var * node = (Var * ) lfirst (lc );
1777
1777
@@ -2717,7 +2717,7 @@ remove_unused_subquery_outputs(Query *subquery, RelOptInfo *rel)
2717
2717
* isn't computed for inheritance child rels, cf set_append_rel_size().
2718
2718
* (XXX might be worth changing that sometime.)
2719
2719
*/
2720
- pull_varattnos ((Node * ) rel -> reltarget . exprs , rel -> relid , & attrs_used );
2720
+ pull_varattnos ((Node * ) rel -> reltarget -> exprs , rel -> relid , & attrs_used );
2721
2721
2722
2722
/* Add all the attributes used by un-pushed-down restriction clauses. */
2723
2723
foreach (lc , rel -> baserestrictinfo )
@@ -3028,7 +3028,7 @@ debug_print_rel(PlannerInfo *root, RelOptInfo *rel)
3028
3028
3029
3029
printf ("RELOPTINFO (" );
3030
3030
print_relids (rel -> relids );
3031
- printf ("): rows=%.0f width=%d\n" , rel -> rows , rel -> reltarget . width );
3031
+ printf ("): rows=%.0f width=%d\n" , rel -> rows , rel -> reltarget -> width );
3032
3032
3033
3033
if (rel -> baserestrictinfo )
3034
3034
{
0 commit comments