Re: Block-level CRC checks

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Block-level CRC checks
Дата
Msg-id 1259672898.13774.13164.camel@ebony
обсуждение исходный текст
Ответ на Re: Block-level CRC checks  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On Tue, 2009-12-01 at 07:58 -0500, Bruce Momjian wrote:
> bruce wrote:
> > What might be interesting is to report CRC mismatches if the database
> > was shut down cleanly previously;  I think in those cases we shouldn't
> > have torn pages.
> 
> Sorry, stupid idea on my part.  We don't WAL log hit bit changes so
> there is no guarantee the page is in WAL on recovery.

I thought it was a reasonable idea. We would need to re-check CRCs after
a crash and zero any that mismatched. Then we can start checking them
again as we run.

In any case, it seems strange to do nothing to protect the database in
normal running just because there is one type of problem that occurs
when we crash.

-- Simon Riggs           www.2ndQuadrant.com



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Block-level CRC checks
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Block-level CRC checks