forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7b88d63
committed
Add null test to partition constraint for default range partitions.
Non-default range partitions have a constraint which include nulltests, and both default and non-default list partitions also have aconstraint which includes null tests, but for some reason this wasmissed for default range partitions. This could cause the partitionconstraint to evaluate to false for rows that were (correctly) routedto that partition by insert tuple routing, which could in turncause constraint exclusion to prune the default partition in caseswhere it should not.Amit Langote, reviewed by Kyotaro HoriguchiDiscussion:http://postgr.es/m/ba7aaeb1-4399-220e-70b4-62eade1522d0@lab.ntt.co.jp1 parent487a0c1 commit7b88d63
File tree
4 files changed
+56
-25
lines changed- src
- backend/catalog
- test/regress
- expected
- sql
4 files changed
+56
-25
lines changedLines changed: 23 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2134 | 2134 |
| |
2135 | 2135 |
| |
2136 | 2136 |
| |
2137 |
| - | |
2138 |
| - | |
2139 |
| - | |
2140 |
| - | |
2141 |
| - | |
2142 |
| - | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
2143 | 2160 |
| |
2144 | 2161 |
| |
2145 | 2162 |
| |
|
Lines changed: 27 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1853 | 1853 |
| |
1854 | 1854 |
| |
1855 | 1855 |
| |
| 1856 | + | |
1856 | 1857 |
| |
1857 | 1858 |
| |
1858 | 1859 |
| |
1859 | 1860 |
| |
1860 | 1861 |
| |
1861 | 1862 |
| |
1862 |
| - | |
1863 |
| - | |
1864 |
| - | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
1865 | 1866 |
| |
1866 | 1867 |
| |
1867 | 1868 |
| |
1868 |
| - | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
1869 | 1872 |
| |
1870 |
| - | |
| 1873 | + | |
1871 | 1874 |
| |
1872 | 1875 |
| |
1873 | 1876 |
| |
1874 | 1877 |
| |
1875 | 1878 |
| |
1876 |
| - | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
1877 | 1882 |
| |
1878 |
| - | |
| 1883 | + | |
1879 | 1884 |
| |
1880 | 1885 |
| |
1881 | 1886 |
| |
1882 | 1887 |
| |
1883 | 1888 |
| |
1884 | 1889 |
| |
1885 | 1890 |
| |
1886 |
| - | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
1887 | 1894 |
| |
1888 | 1895 |
| |
1889 |
| - | |
1890 |
| - | |
| 1896 | + | |
| 1897 | + | |
1891 | 1898 |
| |
1892 | 1899 |
| |
1893 | 1900 |
| |
| |||
1899 | 1906 |
| |
1900 | 1907 |
| |
1901 | 1908 |
| |
1902 |
| - | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
1903 | 1912 |
| |
1904 | 1913 |
| |
1905 | 1914 |
| |
| |||
1917 | 1926 |
| |
1918 | 1927 |
| |
1919 | 1928 |
| |
1920 |
| - | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
1921 | 1932 |
| |
1922 | 1933 |
| |
1923 | 1934 |
| |
| |||
1927 | 1938 |
| |
1928 | 1939 |
| |
1929 | 1940 |
| |
1930 |
| - | |
| 1941 | + | |
1931 | 1942 |
| |
1932 | 1943 |
| |
1933 | 1944 |
| |
| |||
1937 | 1948 |
| |
1938 | 1949 |
| |
1939 | 1950 |
| |
1940 |
| - | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
1941 | 1954 |
| |
1942 | 1955 |
| |
1943 | 1956 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
230 |
| - | |
| 230 | + | |
231 | 231 |
| |
232 | 232 |
| |
233 | 233 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
664 | 664 |
| |
665 | 665 |
| |
666 | 666 |
| |
| 667 | + | |
667 | 668 |
| |
668 | 669 |
| |
669 | 670 |
| |
670 | 671 |
| |
671 | 672 |
| |
672 | 673 |
| |
673 |
| - | |
674 |
| - | |
675 |
| - | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
676 | 677 |
| |
677 | 678 |
| |
678 | 679 |
| |
679 |
| - | |
| 680 | + | |
680 | 681 |
| |
681 | 682 |
| |
682 | 683 |
| |
|
0 commit comments
Comments
(0)