forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf4a3c0b
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 parent29f8f54 commitf4a3c0b
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 | |
---|---|---|---|
| |||
2900 | 2900 |
| |
2901 | 2901 |
| |
2902 | 2902 |
| |
2903 |
| - | |
| 2903 | + | |
| 2904 | + | |
2904 | 2905 |
| |
2905 | 2906 |
| |
2906 | 2907 |
| |
| |||
2914 | 2915 |
| |
2915 | 2916 |
| |
2916 | 2917 |
| |
2917 |
| - | |
2918 |
| - | |
2919 |
| - | |
2920 |
| - | |
2921 |
| - | |
2922 |
| - | |
2923 |
| - | |
2924 |
| - | |
2925 | 2918 |
| |
2926 | 2919 |
| |
2927 | 2920 |
| |
|
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)