@@ -2113,22 +2113,12 @@ create_agg_plan(PlannerInfo *root, AggPath *best_path)
2113
2113
Plan * subplan ;
2114
2114
List * tlist ;
2115
2115
List * quals ;
2116
- int flags ;
2117
2116
2118
2117
/*
2119
2118
* Agg can project, so no need to be terribly picky about child tlist, but
2120
- * we do need grouping columns to be available. We are a bit more careful
2121
- * with hash aggregate, where we explicitly request small tlist to
2122
- * minimize I/O needed for spilling (we can't be sure spilling won't be
2123
- * necessary, so we just do it every time).
2119
+ * we do need grouping columns to be available
2124
2120
*/
2125
- flags = CP_LABEL_TLIST ;
2126
-
2127
- /* ensure small tlist for hash aggregate */
2128
- if (best_path -> aggstrategy == AGG_HASHED )
2129
- flags |= CP_SMALL_TLIST ;
2130
-
2131
- subplan = create_plan_recurse (root , best_path -> subpath , flags );
2121
+ subplan = create_plan_recurse (root , best_path -> subpath , CP_LABEL_TLIST );
2132
2122
2133
2123
tlist = build_path_tlist (root , & best_path -> path );
2134
2124
@@ -2210,26 +2200,16 @@ create_groupingsets_plan(PlannerInfo *root, GroupingSetsPath *best_path)
2210
2200
int maxref ;
2211
2201
List * chain ;
2212
2202
ListCell * lc ;
2213
- int flags ;
2214
2203
2215
2204
/* Shouldn't get here without grouping sets */
2216
2205
Assert (root -> parse -> groupingSets );
2217
2206
Assert (rollups != NIL );
2218
2207
2219
2208
/*
2220
2209
* Agg can project, so no need to be terribly picky about child tlist, but
2221
- * we do need grouping columns to be available. We are a bit more careful
2222
- * with hash aggregate, where we explicitly request small tlist to
2223
- * minimize I/O needed for spilling (we can't be sure spilling won't be
2224
- * necessary, so we just do it every time).
2210
+ * we do need grouping columns to be available
2225
2211
*/
2226
- flags = CP_LABEL_TLIST ;
2227
-
2228
- /* ensure small tlist for hash aggregate */
2229
- if (best_path -> aggstrategy == AGG_HASHED )
2230
- flags |= CP_SMALL_TLIST ;
2231
-
2232
- subplan = create_plan_recurse (root , best_path -> subpath , flags );
2212
+ subplan = create_plan_recurse (root , best_path -> subpath , CP_LABEL_TLIST );
2233
2213
2234
2214
/*
2235
2215
* Compute the mapping from tleSortGroupRef to column index in the child's
0 commit comments