Re: bug of recovery? - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: bug of recovery?
Date
Msg-id CAHGQGwGBMUoZ30x80HaROaMuKMSHBA1J4ccYm47+ehhK-u50Rg@mail.gmail.com
Whole thread Raw
In response to Re: bug of recovery?  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: bug of recovery?  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Fri, Sep 30, 2011 at 3:57 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
> I think we should issue PANIC if the source is a critical rmgr, or
> just WARNING if from a non-critical rmgr, such as indexes.
>
> Ideally, I think we should have a mechanism to allow indexes to be
> marked corrupt. For example, a file that if present shows that the
> index is corrupt and would be marked not valid. We can then create the
> file and send a sinval message to force the index relcache to be
> rebuilt showing valid set to false.

This seems not to be specific to the invalid-page table problem.
All error cases from a non-critical rmgr should be treated not-PANIC.
So I think that the idea should be implemented separately from
the patch I've posted.

Anyway what if read-only query accesses the index marked invalid?
Just emit ERROR?

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump issues
Next
From: Marko Tiikkaja
Date:
Subject: Re: synchronized snapshots