forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit64917cc
committed
make_sort_from_pathkeys()'s method for choosing which of several
equivalent sort expressions to use was broken: you can't just lookat the relation membership, you have to actually grovel over theindividual Vars in each expression. I think this did work when itwas written, but it was broken by subsequent optimizations that madejoin relations not propagate every single input variable upward.Must find the Var that got propagated, not choose one at random.Per bug report from Daniel O'Neill.1 parente3f27c1 commit64917cc
1 file changed
+16
-10
lines changedLines changed: 16 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
109 |
| - | |
| 109 | + | |
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
| |||
1057 | 1057 |
| |
1058 | 1058 |
| |
1059 | 1059 |
| |
1060 |
| - | |
1061 | 1060 |
| |
1062 | 1061 |
| |
1063 | 1062 |
| |
| |||
1067 | 1066 |
| |
1068 | 1067 |
| |
1069 | 1068 |
| |
1070 |
| - | |
1071 | 1069 |
| |
1072 | 1070 |
| |
1073 | 1071 |
| |
| |||
1837 | 1835 |
| |
1838 | 1836 |
| |
1839 | 1837 |
| |
1840 |
| - | |
1841 | 1838 |
| |
1842 | 1839 |
| |
1843 | 1840 |
| |
| |||
1850 | 1847 |
| |
1851 | 1848 |
| |
1852 | 1849 |
| |
1853 |
| - | |
1854 |
| - | |
| 1850 | + | |
1855 | 1851 |
| |
1856 | 1852 |
| |
1857 | 1853 |
| |
| |||
1895 | 1891 |
| |
1896 | 1892 |
| |
1897 | 1893 |
| |
1898 |
| - | |
| 1894 | + | |
1899 | 1895 |
| |
1900 | 1896 |
| |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
1901 | 1900 |
| |
1902 |
| - | |
1903 |
| - | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
1904 | 1910 |
| |
1905 | 1911 |
| |
1906 | 1912 |
| |
|
0 commit comments
Comments
(0)