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

Commit3bfe957

Browse files
committed
Fix logic error in add_paths_to_partial_grouping_rel.
Commit3bf05e0 sometimes uses thecheapest_partial_path variable in this function to mean the cheapestone from the input rel and at other times the cheapest one from thepartially grouped rel, but it never resets it, so we can end up withbad plans, leading to "ERROR: Aggref found in non-Agg plan node".Jeevan Chalke, per a report from Andreas Joseph Krogh and a separateoff-list report from Rajkumar RaghuwanshiDiscussion:http://postgr.es/m/CAM2+6=X9kxQoL2ZqZ00E6asBt9z+rfyWbOmhXJ0+8fPAyMZ9Jg@mail.gmail.com
1 parentbe42eb9 commit3bfe957

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/optimizer/plan/planner.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6339,6 +6339,9 @@ add_paths_to_partial_grouping_rel(PlannerInfo *root,
63396339
*/
63406340
generate_gather_paths(root,partially_grouped_rel, true);
63416341

6342+
/* Get cheapest partial path from partially_grouped_rel */
6343+
cheapest_partial_path=linitial(partially_grouped_rel->partial_pathlist);
6344+
63426345
/*
63436346
* generate_gather_paths won't consider sorting the cheapest path to match
63446347
* the group keys and then applying a Gather Merge node to the result;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp