Re: Page Checksums - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Page Checksums
Date
Msg-id 1324237329.28578.1.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Page Checksums  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On sön, 2011-12-18 at 21:34 +0200, Heikki Linnakangas wrote:
> On 18.12.2011 20:44, David Fetter wrote:
>  > Any way to
>  > simulate them, even if it's by injecting faults into the source code?
> 
> Hmm, it's hard to persuade the OS to suffer a torn page on purpose. What 
> you could do is split the write() call in mdwrite() into two. First 
> write the 1st half of the page, then the second. Then you can put a 
> breakpoint in between the writes, and kill the system before the 2nd 
> half is written.

Perhaps the Library-level Fault Injector (http://lfi.sf.net) could be
used to set up a test for this.  (Not that I think you need one, but if
David wants to see it happen himself ...)



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Page Checksums
Next
From: Jesper Krogh
Date:
Subject: Re: Page Checksums