Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6b960aa

Browse files
committed
Fix function-header comments in planner.c
Inb563594, a couple of function header comments weren't changed, orweren't changed correctly, to reflect the arguments being passed intothe functions. Specifically, get_number_of_groups() had the wrongargument name in the commit and create_grouping_paths() wasn'tupdated 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 tosee if there were any similar issues from that commit.Discussion:https://postgr.es/m/CAFjFpRcbp4702jcp387PExt3fNCt62QJN8++DQGwBhsW6wRHWA@mail.gmail.com
1 parent1f7b896 commit6b960aa

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: groupingset data, or NULL if not doinggrouping sets
3507+
*gd: groupingsets data including list ofgrouping 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)

[8]ページ先頭

©2009-2025 Movatter.jp