GIN tries to form a tuple with a partial compressedList during insertion

Поиск
Список
Период
Сортировка
От Arseniy Mukhin
Тема GIN tries to form a tuple with a partial compressedList during insertion
Дата
Msg-id CAE7r3M+C=jcpTD93f_RBHrQp3C+=TAXFs+k4tTuZuuxboK8AvA@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi,

In the functions addItemPointersToLeafTuple and buildFreshLeafTuple
(in gininsert.c), the result of ginCompressPostingList()
is passed to GinFormTuple without checking whether
ginCompressPostingList() successfully packed all items.
These GinFormTuple calls consistently fail because the resulting
tuples always exceed the maximum size.
While this doesn’t result in data corruption, it might still be worth
addressing.
Additionally, the condition if (compressedList) is unnecessary, since
ginCompressPostingList() never returns NULL.

Please find the attached patch fixing it.

Best regards,
Arseniy Mukhin

Вложения

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