@@ -936,7 +936,7 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
936936 /*
937937 * CE failed, so finish copying/modifying targetlist and join quals.
938938 *
939- * Note : the resulting childrel->reltarget. exprs may contain arbitrary
939+ * NB : the resulting childrel->reltarget-> exprs may contain arbitrary
940940 * expressions, which otherwise would not occur in a rel's targetlist.
941941 * Code that might be looking at an appendrel child must cope with
942942 * such. (Normally, a rel's targetlist would only include Vars and
@@ -947,9 +947,9 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
947947 adjust_appendrel_attrs (root ,
948948 (Node * ) rel -> joininfo ,
949949 appinfo );
950- childrel -> reltarget . exprs = (List * )
950+ childrel -> reltarget -> exprs = (List * )
951951 adjust_appendrel_attrs (root ,
952- (Node * ) rel -> reltarget . exprs ,
952+ (Node * ) rel -> reltarget -> exprs ,
953953 appinfo );
954954
955955 /*
@@ -994,7 +994,7 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
994994 Assert (childrel -> rows > 0 );
995995
996996 parent_rows += childrel -> rows ;
997- parent_size += childrel -> reltarget . width * childrel -> rows ;
997+ parent_size += childrel -> reltarget -> width * childrel -> rows ;
998998
999999 /*
10001000 * Accumulate per-column estimates too. We need not do anything for
@@ -1004,8 +1004,8 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
10041004 *
10051005 * By construction, child's targetlist is 1-to-1 with parent's.
10061006 */
1007- forboth (parentvars , rel -> reltarget . exprs ,
1008- childvars , childrel -> reltarget . exprs )
1007+ forboth (parentvars , rel -> reltarget -> exprs ,
1008+ childvars , childrel -> reltarget -> exprs )
10091009 {
10101010 Var * parentvar = (Var * ) lfirst (parentvars );
10111011 Node * childvar = (Node * ) lfirst (childvars );
@@ -1040,7 +1040,7 @@ set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
10401040
10411041 Assert (parent_rows > 0 );
10421042 rel -> rows = parent_rows ;
1043- rel -> reltarget . width = rint (parent_size / parent_rows );
1043+ rel -> reltarget -> width = rint (parent_size / parent_rows );
10441044 for (i = 0 ; i < nattrs ; i ++ )
10451045 rel -> attr_widths [i ] = rint (parent_attrsizes [i ] / parent_rows );
10461046
@@ -1515,7 +1515,7 @@ set_dummy_rel_pathlist(RelOptInfo *rel)
15151515{
15161516 /* Set dummy size estimates --- we leave attr_widths[] as zeroes */
15171517 rel -> rows = 0 ;
1518- rel -> reltarget . width = 0 ;
1518+ rel -> reltarget -> width = 0 ;
15191519
15201520 /* Discard any pre-existing paths; no further need for them */
15211521 rel -> pathlist = NIL ;
@@ -1771,7 +1771,7 @@ set_function_pathlist(PlannerInfo *root, RelOptInfo *rel, RangeTblEntry *rte)
17711771 * not reference the ordinality column, or at least not in any way
17721772 * that would be interesting for sorting.
17731773 */
1774- foreach (lc , rel -> reltarget . exprs )
1774+ foreach (lc , rel -> reltarget -> exprs )
17751775 {
17761776 Var * node = (Var * ) lfirst (lc );
17771777
@@ -2717,7 +2717,7 @@ remove_unused_subquery_outputs(Query *subquery, RelOptInfo *rel)
27172717 * isn't computed for inheritance child rels, cf set_append_rel_size().
27182718 * (XXX might be worth changing that sometime.)
27192719 */
2720- pull_varattnos ((Node * ) rel -> reltarget . exprs , rel -> relid , & attrs_used );
2720+ pull_varattnos ((Node * ) rel -> reltarget -> exprs , rel -> relid , & attrs_used );
27212721
27222722 /* Add all the attributes used by un-pushed-down restriction clauses. */
27232723 foreach (lc , rel -> baserestrictinfo )
@@ -3028,7 +3028,7 @@ debug_print_rel(PlannerInfo *root, RelOptInfo *rel)
30283028
30293029 printf ("RELOPTINFO (" );
30303030 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 );
30323032
30333033 if (rel -> baserestrictinfo )
30343034 {
0 commit comments