Fix BRIN minmax-multi distance for inet type
Tomas Vondra <tomas.vondra@postgresql.org>
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 the mask in brin_minmax_multi_distance_inet. I've considered simply calling inetmi() to calculate the delta, but that does not consider mask either. Reviewed-by: Zhihong Yu Discussion: https://postgr.es/m/1a0a7b9d-9bda-e3a2-7fa4-88f15042a051%40enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/brin/brin_minmax_multi.c | modified | +51 −8 |
Discussion
- Crash in BRIN minmax-multi indexes 25 messages · 2021-03-31 → 2022-12-30