Commit 5e6a63c0 authored by Robert Haas's avatar Robert Haas

Minor cleanup of code related to partially_grouped_rel.

Jeevan Chalke

Discussion: http://postgr.es/m/CAM2+6=X9kxQoL2ZqZ00E6asBt9z+rfyWbOmhXJ0+8fPAyMZ9Jg@mail.gmail.com
parent 3bfe9577
...@@ -195,12 +195,11 @@ static void add_paths_to_grouping_rel(PlannerInfo *root, RelOptInfo *input_rel, ...@@ -195,12 +195,11 @@ static void add_paths_to_grouping_rel(PlannerInfo *root, RelOptInfo *input_rel,
double dNumGroups, List *havingQual); double dNumGroups, List *havingQual);
static void add_paths_to_partial_grouping_rel(PlannerInfo *root, static void add_paths_to_partial_grouping_rel(PlannerInfo *root,
RelOptInfo *input_rel, RelOptInfo *input_rel,
RelOptInfo *partial_grouped_rel, RelOptInfo *partially_grouped_rel,
AggClauseCosts *agg_partial_costs, AggClauseCosts *agg_partial_costs,
grouping_sets_data *gd, grouping_sets_data *gd,
bool can_sort, bool can_sort,
bool can_hash, bool can_hash);
List *havingQual);
static bool can_parallel_agg(PlannerInfo *root, RelOptInfo *input_rel, static bool can_parallel_agg(PlannerInfo *root, RelOptInfo *input_rel,
RelOptInfo *grouped_rel, const AggClauseCosts *agg_costs); RelOptInfo *grouped_rel, const AggClauseCosts *agg_costs);
...@@ -3838,8 +3837,7 @@ create_grouping_paths(PlannerInfo *root, ...@@ -3838,8 +3837,7 @@ create_grouping_paths(PlannerInfo *root,
add_paths_to_partial_grouping_rel(root, input_rel, add_paths_to_partial_grouping_rel(root, input_rel,
partially_grouped_rel, partially_grouped_rel,
&agg_partial_costs, &agg_partial_costs,
gd, can_sort, can_hash, gd, can_sort, can_hash);
(List *) parse->havingQual);
} }
/* Build final grouping paths */ /* Build final grouping paths */
...@@ -6224,8 +6222,7 @@ add_paths_to_partial_grouping_rel(PlannerInfo *root, ...@@ -6224,8 +6222,7 @@ add_paths_to_partial_grouping_rel(PlannerInfo *root,
AggClauseCosts *agg_partial_costs, AggClauseCosts *agg_partial_costs,
grouping_sets_data *gd, grouping_sets_data *gd,
bool can_sort, bool can_sort,
bool can_hash, bool can_hash)
List *havingQual)
{ {
Query *parse = root->parse; Query *parse = root->parse;
Path *cheapest_partial_path = linitial(input_rel->partial_pathlist); Path *cheapest_partial_path = linitial(input_rel->partial_pathlist);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment