Re: GIN needs tonic

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: GIN needs tonic
Дата
Msg-id 13269.1253030998@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: GIN needs tonic  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: GIN needs tonic  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-bugs
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Tom Lane wrote:
>> Actually, the entire thing is misdesigned from the get-go.  AFAICS
>> it shouldn't even have its own WAL record type --- it should be using
>> log_newpage().

> Yeah, that would be even simpler. The WAL records it currenctly writes
> are more compact, but then again it probably makes no difference in
> practice.

I'm working on this now.  It looks to me like there are a number of bugs
in this code, notably I think that the accounting for free space on
GinList pages is failing to allow for alignment effects.

One difficulty in using log_newpage() directly is that it presently
assumes that the page it's passed has been built in private memory,
not in a shared buffer.  I'm not sure if it's worth restructuring the
GIN code to do it that way.

            regards, tom lane

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: GIN needs tonic
Следующее
От: Tom Lane
Дата:
Сообщение: Re: error: message type 0x5a arrived from server while idle