1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-21 15:54:08 +03:00

Remove no-longer-used parameter for create_groupingsets_path().

numGroups is unused since commit b5635948a; let's get rid of it.

XueJing Zhao, reviewed by Richard Guo

Discussion: https://postgr.es/m/DM6PR05MB64923CC8B63A2CAF3B2E5D47B7AD9@DM6PR05MB6492.namprd05.prod.outlook.com
This commit is contained in:
Tom Lane 2022-07-01 18:39:30 -04:00
parent f58f1fb6c0
commit f172b11d61
3 changed files with 5 additions and 11 deletions

View File

@ -3900,8 +3900,7 @@ consider_groupingsets_paths(PlannerInfo *root,
(List *) parse->havingQual, (List *) parse->havingQual,
strat, strat,
new_rollups, new_rollups,
agg_costs, agg_costs));
dNumGroups));
return; return;
} }
@ -4059,8 +4058,7 @@ consider_groupingsets_paths(PlannerInfo *root,
(List *) parse->havingQual, (List *) parse->havingQual,
AGG_MIXED, AGG_MIXED,
rollups, rollups,
agg_costs, agg_costs));
dNumGroups));
} }
} }
@ -4075,8 +4073,7 @@ consider_groupingsets_paths(PlannerInfo *root,
(List *) parse->havingQual, (List *) parse->havingQual,
AGG_SORTED, AGG_SORTED,
gd->rollups, gd->rollups,
agg_costs, agg_costs));
dNumGroups));
} }
/* /*

View File

@ -3158,7 +3158,6 @@ create_agg_path(PlannerInfo *root,
* 'having_qual' is the HAVING quals if any * 'having_qual' is the HAVING quals if any
* 'rollups' is a list of RollupData nodes * 'rollups' is a list of RollupData nodes
* 'agg_costs' contains cost info about the aggregate functions to be computed * 'agg_costs' contains cost info about the aggregate functions to be computed
* 'numGroups' is the estimated total number of groups
*/ */
GroupingSetsPath * GroupingSetsPath *
create_groupingsets_path(PlannerInfo *root, create_groupingsets_path(PlannerInfo *root,
@ -3167,8 +3166,7 @@ create_groupingsets_path(PlannerInfo *root,
List *having_qual, List *having_qual,
AggStrategy aggstrategy, AggStrategy aggstrategy,
List *rollups, List *rollups,
const AggClauseCosts *agg_costs, const AggClauseCosts *agg_costs)
double numGroups)
{ {
GroupingSetsPath *pathnode = makeNode(GroupingSetsPath); GroupingSetsPath *pathnode = makeNode(GroupingSetsPath);
PathTarget *target = rel->reltarget; PathTarget *target = rel->reltarget;

View File

@ -233,8 +233,7 @@ extern GroupingSetsPath *create_groupingsets_path(PlannerInfo *root,
List *having_qual, List *having_qual,
AggStrategy aggstrategy, AggStrategy aggstrategy,
List *rollups, List *rollups,
const AggClauseCosts *agg_costs, const AggClauseCosts *agg_costs);
double numGroups);
extern MinMaxAggPath *create_minmaxagg_path(PlannerInfo *root, extern MinMaxAggPath *create_minmaxagg_path(PlannerInfo *root,
RelOptInfo *rel, RelOptInfo *rel,
PathTarget *target, PathTarget *target,