forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite1fbe11
committed
Fix BRIN minmax-multi distance for inet type
The distance calculation ignored the mask, unlike the inet comparator,which resulted in negative distance in some cases. Fixed by applying themask in brin_minmax_multi_distance_inet. I've considered simply callinginetmi() to calculate the delta, but that does not consider mask either.Reviewed-by: Zhihong YuDiscussion:https://postgr.es/m/1a0a7b9d-9bda-e3a2-7fa4-88f15042a051%40enterprisedb.com1 parent7262f24 commite1fbe11
1 file changed
+51
-8
lines changedLines changed: 51 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2297 | 2297 |
| |
2298 | 2298 |
| |
2299 | 2299 |
| |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
2300 | 2303 |
| |
2301 | 2304 |
| |
2302 | 2305 |
| |
2303 | 2306 |
| |
2304 | 2307 |
| |
2305 | 2308 |
| |
2306 | 2309 |
| |
2307 |
| - | |
2308 |
| - | |
2309 |
| - | |
2310 |
| - | |
2311 |
| - | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
2312 | 2336 |
| |
2313 |
| - | |
2314 |
| - | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
2315 | 2343 |
| |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
2316 | 2353 |
| |
2317 | 2354 |
| |
2318 | 2355 |
| |
2319 |
| - | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
2320 | 2360 |
| |
2321 | 2361 |
| |
2322 | 2362 |
| |
2323 | 2363 |
| |
2324 | 2364 |
| |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
2325 | 2368 |
| |
2326 | 2369 |
| |
2327 | 2370 |
| |
|
0 commit comments
Comments
(0)