- Notifications
You must be signed in to change notification settings - Fork28
Commitea190ed
committed
Consider unsorted paths in generate_useful_gather_paths
generate_useful_gather_paths used to skip unsorted paths (without anypathkeys), but that is unnecessary - the later code actually can handlesuch paths just fine by adding a Sort node. This is clearly a thinko,preventing construction of useful plans.Backpatch to 13, where Incremental Sort was introduced.Author: James ColemanReviewed-by: Tomas VondraBackpatch-through: 13Discussion:https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com1 parentbd6939a commitea190ed
File tree
3 files changed
+19
-9
lines changed- src
- backend/optimizer/path
- test/regress
- expected
- sql
3 files changed
+19
-9
lines changedLines changed: 2 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2840 | 2840 |
| |
2841 | 2841 |
| |
2842 | 2842 |
| |
2843 |
| - | |
| 2843 | + | |
| 2844 | + | |
2844 | 2845 |
| |
2845 | 2846 |
| |
2846 | 2847 |
| |
| |||
2854 | 2855 |
| |
2855 | 2856 |
| |
2856 | 2857 |
| |
2857 |
| - | |
2858 |
| - | |
2859 |
| - | |
2860 |
| - | |
2861 |
| - | |
2862 |
| - | |
2863 |
| - | |
2864 |
| - | |
2865 | 2858 |
| |
2866 | 2859 |
| |
2867 | 2860 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1468 | 1468 |
| |
1469 | 1469 |
| |
1470 | 1470 |
| |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1471 | 1484 |
| |
1472 | 1485 |
| |
1473 | 1486 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
223 | 227 |
| |
224 | 228 |
| |
225 | 229 |
| |
|
0 commit comments
Comments
(0)