Re: GIN needs tonic - Mailing list pgsql-bugs

From Tom Lane
Subject Re: GIN needs tonic
Date
Msg-id 23545.1253048997@sss.pgh.pa.us
Whole thread Raw
In response to Re: GIN needs tonic  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List 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 by date:

Previous
From: Simon Riggs
Date:
Subject: Re: GIN needs tonic
Next
From: Robert Haas
Date:
Subject: Re: GIN needs tonic