Re: GIN needs tonic

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: GIN needs tonic
Дата
Msg-id 23545.1253048997@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: GIN needs tonic  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-bugs
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Tom Lane wrote:
>> BTW, there's more than one bug here :-(.  Heikki found one, but the
>> code is also attaching the buffer indicator to the wrong rdata entry
>> --- the record header, not the workspace, is what gets suppressed
>> if the full page is logged.

> I saw that, but I figured it should be attaching both rdata entries to
> the buffer, so that both are suppressed if a full page image is logged.
> I guess the header can be useful for debugging purposes, even though the
> redo function doesn't use it for anything.

Yeah, for instance xlog logging (gin_desc) expects the header to be there.

As you mentioned, another tack we could take is to not connect the
buffer to the xlog record at all, and just reinitialize the page from
the xlog record contents.  I left it as was, but this might be a
reasonable alternative to using HEAP_NEWPAGE.

            regards, tom lane

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: GIN needs tonic
Следующее
От: Robert Haas
Дата:
Сообщение: Re: GIN needs tonic