Skip to content

Commit 6b960aa

Browse files
committed
Fix function-header comments in planner.c
In b563594, a couple of function header comments weren't changed, or weren't changed correctly, to reflect the arguments being passed into the functions. Specifically, get_number_of_groups() had the wrong argument name in the commit and create_grouping_paths() wasn't updated even though the arguments had been changed. The issue with create_grouping_paths() was noticed by Ashutosh Bapat, while I discovered the issue with get_number_of_groups() by looking to see if there were any similar issues from that commit. Discussion: https://postgr.es/m/CAFjFpRcbp4702jcp387PExt3fNCt62QJN8++DQGwBhsW6wRHWA@mail.gmail.com
1 parent 1f7b896 commit 6b960aa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/backend/optimizer/plan/planner.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3504,7 +3504,7 @@ standard_qp_callback(PlannerInfo *root, void *extra)
35043504
* Estimate number of groups produced by grouping clauses (1 if not grouping)
35053505
*
35063506
* path_rows: number of output rows from scan/join step
3507-
* gsets: grouping set data, or NULL if not doing grouping sets
3507+
* gd: grouping sets data including list of grouping sets and their clauses
35083508
*
35093509
* If doing grouping sets, we also annotate the gsets data with the estimates
35103510
* for each set and each individual rollup list, with a view to later
@@ -3659,9 +3659,7 @@ estimate_hashagg_tablesize(Path *path, const AggClauseCosts *agg_costs,
36593659
* input_rel: contains the source-data Paths
36603660
* target: the pathtarget for the result Paths to compute
36613661
* agg_costs: cost info about all aggregates in query (in AGGSPLIT_SIMPLE mode)
3662-
* rollup_lists: list of grouping sets, or NIL if not doing grouping sets
3663-
* rollup_groupclauses: list of grouping clauses for grouping sets,
3664-
* or NIL if not doing grouping sets
3662+
* gd: grouping sets data including list of grouping sets and their clauses
36653663
*
36663664
* Note: all Paths in input_rel are expected to return the target computed
36673665
* by make_group_input_target.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy