forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit555d0b2
committed
Back-patch "Fix EquivalenceClass processing for nested append relations".
When we committeda87c729, we somehowfailed to notice that it didn't merely improve plan quality for expressionindexes; there were very closely related cases that failed outright with"could not find pathkey item to sort". The failing cases seem to be thosewhere the planner was already capable of selecting a MergeAppend plan,and there was inheritance involved: the lack of appropriate eclass childmembers would prevent prepare_sort_from_pathkeys() from succeeding on theMergeAppend's child plan nodes for inheritance child tables.Accordingly, back-patch into 9.1 through 9.3, along with an extraregression test case covering the problem.Per trouble report from Michael Glaesemann.1 parent8658680 commit555d0b2
File tree
5 files changed
+71
-9
lines changed- src
- backend/optimizer
- path
- plan
- test/regress
- expected
- sql
5 files changed
+71
-9
lines changedLines changed: 16 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
635 | 635 |
| |
636 | 636 |
| |
637 | 637 |
| |
638 |
| - | |
639 |
| - | |
640 |
| - | |
641 |
| - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
642 | 647 |
| |
643 | 648 |
| |
644 | 649 |
| |
| |||
650 | 655 |
| |
651 | 656 |
| |
652 | 657 |
| |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
653 | 665 |
| |
654 | 666 |
| |
655 | 667 |
| |
|
Lines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1850 | 1850 |
| |
1851 | 1851 |
| |
1852 | 1852 |
| |
1853 |
| - | |
1854 |
| - | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
1855 | 1859 |
| |
1856 | 1860 |
| |
1857 | 1861 |
| |
1858 | 1862 |
| |
1859 | 1863 |
| |
1860 | 1864 |
| |
1861 |
| - | |
1862 |
| - | |
| 1865 | + | |
| 1866 | + | |
1863 | 1867 |
| |
1864 | 1868 |
| |
1865 | 1869 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
700 | 700 |
| |
701 | 701 |
| |
702 | 702 |
| |
703 |
| - | |
| 703 | + | |
704 | 704 |
| |
705 | 705 |
| |
706 | 706 |
| |
|
Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
500 | 500 |
| |
501 | 501 |
| |
502 | 502 |
| |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
503 | 507 |
| |
504 | 508 |
| |
505 | 509 |
| |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
506 | 534 |
| |
507 | 535 |
| |
508 | 536 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
199 | 204 |
| |
200 | 205 |
| |
201 | 206 |
| |
202 | 207 |
| |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
203 | 221 |
| |
204 | 222 |
| |
205 | 223 |
| |
|
0 commit comments
Comments
(0)