forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2b10e0e
committed
Fix BRIN minmax-multi distance for interval type
The distance calculation for interval type was treating months as having31 days, which is inconsistent with the interval comparator (using 30days). Due to this it was possible to get negative distance (b-a) when(a<b), trigerring an assert.Fixed by adopting the same logic as interval_cmp_value.Reported-by: Jaime CasanovaDiscussion:https://postgr.es/m/CAJKUy5jKH0Xhneau2mNftNPtTy-BVgQfXc8zQkEvRvBHfeUThQ%40mail.gmail.com1 parent55873a0 commit2b10e0e
1 file changed
+13
-8
lines changedLines changed: 13 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2127 | 2127 |
| |
2128 | 2128 |
| |
2129 | 2129 |
| |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
2130 | 2133 |
| |
2131 | 2134 |
| |
2132 | 2135 |
| |
| |||
2152 | 2155 |
| |
2153 | 2156 |
| |
2154 | 2157 |
| |
2155 |
| - | |
2156 |
| - | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
2157 | 2162 |
| |
2158 |
| - | |
2159 |
| - | |
2160 |
| - | |
2161 |
| - | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
2162 | 2167 |
| |
2163 |
| - | |
2164 |
| - | |
| 2168 | + | |
| 2169 | + | |
2165 | 2170 |
| |
2166 | 2171 |
| |
2167 | 2172 |
| |
|
0 commit comments
Comments
(0)