Re: Page Checksums - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Page Checksums
Date
Msg-id CA+Tgmoa3fJanN9NtzryH1eA2kxBEd1j0_Yrh6KLSaiiMR0gf5Q@mail.gmail.com
Whole thread Raw
In response to Re: Page Checksums  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Page Checksums  (David Fetter <david@fetter.org>)
List pgsql-hackers
On Mon, Dec 19, 2011 at 9:14 AM, Stephen Frost <sfrost@snowman.net> wrote:
> * Aidan Van Dyk (aidan@highrise.ca) wrote:
>> But the scary part is you don't know how long *ago* the crash was.
>> Because a hint-bit-only change w/ a torn-page is a "non event" in
>> PostgreSQL *DESIGN*, on crash recovery, it doesn't do anything to try
>> and "scrub" every page in the database.
>
> Fair enough, but, could we distinguish these two cases?  In other words,
> would it be possible to detect if a page was torn due to a 'traditional'
> crash and not complain in that case, but complain if there's a CRC
> failure and it *doesn't* look like a torn page?

No.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Page Checksums
Next
From: Alvaro Herrera
Date:
Subject: Re: Command Triggers