Fix bug in brin_minmax_multi_union
Tomas Vondra <tomas.vondra@postgresql.org>
Fix bug in brin_minmax_multi_union When calling sort_expanded_ranges() we need to remember the return value, because the function sorts and also deduplicates the ranges. So the number of ranges may decrease. brin_minmax_multi_union failed to do that, which resulted in crashes due to bogus ranges (equal minval/maxval but not marked as compacted). Reported-by: Jaime Casanova Discussion: https://postgr.es/m/20210404052550.GA4376%40ahch-to
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/brin/brin_minmax_multi.c | modified | +1 −1 |
Discussion
- Crash in BRIN minmax-multi indexes 25 messages · 2021-03-31 → 2022-12-30