forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc6cf6d3
committed
Fix minmax-multi distance for extreme interval values
When calculating distance for interval values, the code mostly mimickedinterval_mi, i.e. it built a new interval value for the difference.That however does not work for sufficiently distant interval values,when the difference overflows the interval range.Instead, we can calculate the distance directly, without constructingthe intermediate (and unnecessary) interval value.Backpatch to 14, where minmax-multi indexes were introduced.Reported-by: Dean RasheedReviewed-by: Ashutosh Bapat, Dean RasheedBackpatch-through: 14Discussion:https://postgr.es/m/eef0ea8c-4aaa-8d0d-027f-58b1f35dd170@enterprisedb.com1 parent8da86d6 commitc6cf6d3
File tree
3 files changed
+54
-29
lines changed- src
- backend/access/brin
- test/regress
- expected
- sql
3 files changed
+54
-29
lines changedLines changed: 4 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2160 | 2160 |
| |
2161 | 2161 |
| |
2162 | 2162 |
| |
2163 |
| - | |
2164 | 2163 |
| |
2165 | 2164 |
| |
2166 | 2165 |
| |
2167 | 2166 |
| |
2168 |
| - | |
2169 |
| - | |
2170 |
| - | |
2171 |
| - | |
2172 |
| - | |
2173 |
| - | |
2174 |
| - | |
2175 |
| - | |
2176 |
| - | |
2177 |
| - | |
2178 |
| - | |
2179 |
| - | |
2180 |
| - | |
2181 |
| - | |
2182 |
| - | |
2183 |
| - | |
2184 |
| - | |
2185 |
| - | |
2186 |
| - | |
2187 |
| - | |
2188 |
| - | |
2189 |
| - | |
2190 |
| - | |
2191 |
| - | |
2192 | 2167 |
| |
2193 | 2168 |
| |
2194 | 2169 |
| |
2195 | 2170 |
| |
2196 | 2171 |
| |
2197 | 2172 |
| |
2198 |
| - | |
2199 |
| - | |
2200 |
| - | |
2201 |
| - | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
2202 | 2177 |
| |
2203 | 2178 |
| |
2204 | 2179 |
| |
|
Lines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
915 | 915 |
| |
916 | 916 |
| |
917 | 917 |
| |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + |
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
664 | 664 |
| |
665 | 665 |
| |
666 | 666 |
| |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + |
0 commit comments
Comments
(0)