aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/util/pathnode.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-07-01 18:39:30 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-07-01 18:39:30 -0400
commitf172b11d616e4e440be6b3235721e283e4c16460 (patch)
treefa1099a1b27391429649f5b3de5a1c8c9863a8e4 /src/backend/optimizer/util/pathnode.c
parentf58f1fb6c0f0990558d0859018b31412b1338447 (diff)
downloadpostgresql-f172b11d616e4e440be6b3235721e283e4c16460.tar.gz
postgresql-f172b11d616e4e440be6b3235721e283e4c16460.zip
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
Diffstat (limited to 'src/backend/optimizer/util/pathnode.c')
-rw-r--r--src/backend/optimizer/util/pathnode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/optimizer/util/pathnode.c b/src/backend/optimizer/util/pathnode.c
index e2a3c110ce7..483c4f41373 100644
--- a/src/backend/optimizer/util/pathnode.c
+++ b/src/backend/optimizer/util/pathnode.c
@@ -3158,7 +3158,6 @@ create_agg_path(PlannerInfo *root,
* 'having_qual' is the HAVING quals if any
* 'rollups' is a list of RollupData nodes
* 'agg_costs' contains cost info about the aggregate functions to be computed
- * 'numGroups' is the estimated total number of groups
*/
GroupingSetsPath *
create_groupingsets_path(PlannerInfo *root,
@@ -3167,8 +3166,7 @@ create_groupingsets_path(PlannerInfo *root,
List *having_qual,
AggStrategy aggstrategy,
List *rollups,
- const AggClauseCosts *agg_costs,
- double numGroups)
+ const AggClauseCosts *agg_costs)
{
GroupingSetsPath *pathnode = makeNode(GroupingSetsPath);
PathTarget *target = rel->reltarget;