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

Commit38fc547

Browse files
committed
Re-fix wrong costing of Sort under Gather Merge.
Commitdc02c7b changed this callto create_sort_path() to take -1 rather than limit_tuples because,at that time, there was no way for a Sort beneath a Gather Mergeto become a top-N sort.Later, commit3452dc5 provideda way for a Sort beneath a Gather Merge to become a top-N sort,but failed to revert the previous commit in the process. Do that.Report and analysis by Jeff Janes; patch by Thomas Munro; review byAmit Kapila and by me.Discussion:http://postgr.es/m/CAEepm=1BWtC34vUroA0Uqjw02MaqdUrW+d6WD85_k8SLyPiKHQ@mail.gmail.com
1 parent09a65f5 commit38fc547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5059,7 +5059,7 @@ create_ordered_paths(PlannerInfo *root,
50595059
ordered_rel,
50605060
cheapest_partial_path,
50615061
root->sort_pathkeys,
5062-
-1.0);
5062+
limit_tuples);
50635063

50645064
total_groups=cheapest_partial_path->rows*
50655065
cheapest_partial_path->parallel_workers;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp