- Notifications
You must be signed in to change notification settings - Fork5
Commita1b7e70
committed
Fix code that checks to see if an index can be considered to match the query's
requested sort order. It was assuming that build_index_pathkeys alwaysgenerates a pathkey per index column, which was not true if implied equalitydeduction had determined that two index columns were effectively equated toeach other. Simplest fix seems to be to install an option that causesbuild_index_pathkeys to support this behavior as well as the original one.Per report from Brian Hirt.1 parent4400ca2 commita1b7e70
File tree
3 files changed
+20
-12
lines changed- src
- backend/optimizer/path
- include/optimizer
3 files changed
+20
-12
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
346 |
| - | |
| 346 | + | |
| 347 | + | |
347 | 348 |
| |
348 | 349 |
| |
349 | 350 |
| |
| |||
1705 | 1706 |
| |
1706 | 1707 |
| |
1707 | 1708 |
| |
1708 |
| - | |
| 1709 | + | |
1709 | 1710 |
| |
1710 | 1711 |
| |
1711 | 1712 |
| |
|
Lines changed: 14 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
909 | 909 |
| |
910 | 910 |
| |
911 | 911 |
| |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
912 | 918 |
| |
913 | 919 |
| |
914 | 920 |
| |
915 | 921 |
| |
916 | 922 |
| |
917 | 923 |
| |
918 |
| - | |
| 924 | + | |
| 925 | + | |
919 | 926 |
| |
920 | 927 |
| |
921 | 928 |
| |
| |||
956 | 963 |
| |
957 | 964 |
| |
958 | 965 |
| |
959 |
| - | |
960 |
| - | |
961 |
| - | |
962 |
| - | |
963 |
| - | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
964 | 971 |
| |
965 | 972 |
| |
966 | 973 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
117 |
| - | |
| 117 | + | |
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
|
0 commit comments
Comments
(0)