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

From Heikki Linnakangas
Subject Re: bug of recovery?
Date
Msg-id 4E816650.80607@enterprisedb.com
Whole thread Raw
In response to Re: bug of recovery?  (Florian Pflug <fgp@phlo.org>)
Responses Re: bug of recovery?
List pgsql-hackers
On 27.09.2011 00:28, Florian Pflug wrote:
> On Sep26, 2011, at 22:39 , Tom Lane wrote:
>> It might be worthwhile to invoke XLogCheckInvalidPages() as soon as
>> we (think we) have reached consistency, rather than leaving it to be
>> done only when we exit recovery mode.
>
> I believe we also need to prevent the creation of restart points before
> we've reached consistency.

Seems reasonable. We could still allow restartpoints when the hash table 
is empty, though. And once we've reached consistency, we can throw an 
error immediately in log_invalid_page(), instead of adding the entry in 
the hash table.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: bug of recovery?
Next
From: Simon Riggs
Date:
Subject: Re: bug of recovery?