Re: WAL Bypass for indexes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WAL Bypass for indexes
Date
Msg-id 7638.1144253347@sss.pgh.pa.us
Whole thread Raw
In response to Re: WAL Bypass for indexes  ("Martin Scholes" <marty@iicolo.com>)
List pgsql-hackers
"Martin Scholes" <marty@iicolo.com> writes:
> On a related note, we currently have some indexes that are unsafe during
> recovery (GIST and Hash come to mind).

> In the spirit of making Pg "safe at any speed," would it make sense to put
> some code in the recovery section that rebuilds all indexes whose integrity
> cannot be assured?

This is no longer true for GIST, and hash really ought to be fixed to
support WAL.  The combination of a performance advantage and being able
to postpone fixing hash might be enough of a reason to add a
post-recovery index rebuild feature, but I don't think the latter
alone is --- fixing hash would be less work as well as being the "right"
answer.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Martin Scholes"
Date:
Subject: Re: WAL Bypass for indexes
Next
From: mark@mark.mielke.cc
Date:
Subject: Re: Stats collection on Windows