forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0cf1668
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 parent4ee4594 commit0cf1668
File tree
5 files changed
+76
-9
lines changed- src
- backend/optimizer
- path
- plan
- test/regress
- expected
- sql
5 files changed
+76
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1018 | 1023 | | |
1019 | 1024 | | |
1020 | 1025 | | |
| |||
1026 | 1031 | | |
1027 | 1032 | | |
1028 | 1033 | | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1029 | 1041 | | |
1030 | 1042 | | |
1031 | 1043 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1937 | 1937 | | |
1938 | 1938 | | |
1939 | 1939 | | |
1940 | | - | |
1941 | | - | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
1942 | 1946 | | |
1943 | 1947 | | |
1944 | 1948 | | |
1945 | 1949 | | |
1946 | 1950 | | |
1947 | 1951 | | |
1948 | | - | |
1949 | | - | |
| 1952 | + | |
| 1953 | + | |
1950 | 1954 | | |
1951 | 1955 | | |
1952 | 1956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
734 | | - | |
| 734 | + | |
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
| |||
| 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 | + | |
| 534 | + | |
| 535 | + | |
506 | 536 | | |
507 | 537 | | |
508 | 538 | | |
| |||
| 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 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
202 | 223 | | |
203 | 224 | | |
204 | 225 | | |
| |||
0 commit comments
Comments
(0)