pgsql: Fix bug in brin_minmax_multi_union

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема pgsql: Fix bug in brin_minmax_multi_union
Дата
Msg-id E1lT6gV-00044a-3F@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d9c5b9a9eeb9e3061ae139e0e564ce5358c94001

Modified Files
--------------
src/backend/access/brin/brin_minmax_multi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: pgsql: Add regression test for minmax-multi macaddr8 type
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix confusion in SP-GiST between attribute type and leaf storage