Re: ERROR: failed to add item to the index page

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: ERROR: failed to add item to the index page
Дата
Msg-id CAH2-Wzkd3i9hZikY7+MH7t3TWKOON+W8_0ZspUn+uwOoQFJeGA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ERROR: failed to add item to the index page  (Peter Geoghegan <pg@bowt.ie>)
Ответы Sv: Re: ERROR: failed to add item to the index page  (Andreas Joseph Krogh <andreas@visena.com>)
Re: ERROR: failed to add item to the index page  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
On Tue, Apr 30, 2019 at 9:59 AM Peter Geoghegan <pg@bowt.ie> wrote:
> I'll start investigating the problem right away.

I have found what the problem is. I simply neglected to make a
conservative assumption about suffix truncation needing to add a heap
TID to a leaf page's new high key in nbtsort.c (following commit
dd299df8189), even though I didn't make the same mistake in
nbtsplitloc.c. Not sure how I managed to make such a basic error.

Andreas' test case works fine with the attached patch. I won't push a
fix for this today.

-- 
Peter Geoghegan

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: performance regression when filling in a table
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: CHAR vs NVARCHAR vs TEXT performance