Commit 38fc547
committed
Re-fix wrong costing of Sort under Gather Merge.
Commit dc02c7b changed this call
to create_sort_path() to take -1 rather than limit_tuples because,
at that time, there was no way for a Sort beneath a Gather Merge
to become a top-N sort.
Later, commit 3452dc5 provided
a 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 by
Amit Kapila and by me.
Discussion: http://postgr.es/m/CAEepm=1BWtC34vUroA0Uqjw02MaqdUrW+d6WD85_k8SLyPiKHQ@mail.gmail.com1 parent 09a65f5 commit 38fc547
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5059 | 5059 | | |
5060 | 5060 | | |
5061 | 5061 | | |
5062 | | - | |
| 5062 | + | |
5063 | 5063 | | |
5064 | 5064 | | |
5065 | 5065 | | |
| |||
0 commit comments