|
|
|
|
@ -1644,6 +1644,7 @@ create_unique_plan(PlannerInfo *root, UniquePath *best_path, int flags) |
|
|
|
|
NIL, |
|
|
|
|
NIL, |
|
|
|
|
best_path->path.rows, |
|
|
|
|
0, |
|
|
|
|
subplan); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
@ -2096,6 +2097,7 @@ create_agg_plan(PlannerInfo *root, AggPath *best_path) |
|
|
|
|
NIL, |
|
|
|
|
NIL, |
|
|
|
|
best_path->numGroups, |
|
|
|
|
best_path->transitionSpace, |
|
|
|
|
subplan); |
|
|
|
|
|
|
|
|
|
copy_generic_path_info(&plan->plan, (Path *) best_path); |
|
|
|
|
@ -2257,6 +2259,7 @@ create_groupingsets_plan(PlannerInfo *root, GroupingSetsPath *best_path) |
|
|
|
|
rollup->gsets, |
|
|
|
|
NIL, |
|
|
|
|
rollup->numGroups, |
|
|
|
|
best_path->transitionSpace, |
|
|
|
|
sort_plan); |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
@ -2295,6 +2298,7 @@ create_groupingsets_plan(PlannerInfo *root, GroupingSetsPath *best_path) |
|
|
|
|
rollup->gsets, |
|
|
|
|
chain, |
|
|
|
|
rollup->numGroups, |
|
|
|
|
best_path->transitionSpace, |
|
|
|
|
subplan); |
|
|
|
|
|
|
|
|
|
/* Copy cost data from Path to Plan */ |
|
|
|
|
@ -6192,8 +6196,8 @@ Agg * |
|
|
|
|
make_agg(List *tlist, List *qual, |
|
|
|
|
AggStrategy aggstrategy, AggSplit aggsplit, |
|
|
|
|
int numGroupCols, AttrNumber *grpColIdx, Oid *grpOperators, Oid *grpCollations, |
|
|
|
|
List *groupingSets, List *chain, |
|
|
|
|
double dNumGroups, Plan *lefttree) |
|
|
|
|
List *groupingSets, List *chain, double dNumGroups, |
|
|
|
|
Size transitionSpace, Plan *lefttree) |
|
|
|
|
{ |
|
|
|
|
Agg *node = makeNode(Agg); |
|
|
|
|
Plan *plan = &node->plan; |
|
|
|
|
@ -6209,6 +6213,7 @@ make_agg(List *tlist, List *qual, |
|
|
|
|
node->grpOperators = grpOperators; |
|
|
|
|
node->grpCollations = grpCollations; |
|
|
|
|
node->numGroups = numGroups; |
|
|
|
|
node->transitionSpace = transitionSpace; |
|
|
|
|
node->aggParams = NULL; /* SS_finalize_plan() will fill this */ |
|
|
|
|
node->groupingSets = groupingSets; |
|
|
|
|
node->chain = chain; |
|
|
|
|
|