Fix BRIN minmax-multi distance for timetz type
Tomas Vondra <tomas.vondra@postgresql.org>
Fix BRIN minmax-multi distance for timetz type The distance calculation ignored the time zone, so the result of (b-a) might have ended negative even if (b > a). Fixed by considering the time zone difference. Reported-by: Jaime Casanova Discussion: https://postgr.es/m/CAJKUy5jLZFLCxyxfT%3DMfK5mtPfSzHA1rVLowR-j4RRsFVvKm7A%40mail.gmail.com
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