Re: Page Checksums

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: David Fetter <david(at)fetter(dot)org>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Page Checksums
Date: 2011-12-18 19:42:09
Message-ID: 1324237329.28578.1.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 ...)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jesper Krogh 2011-12-18 19:51:04 Re: Page Checksums
Previous Message Heikki Linnakangas 2011-12-18 19:34:03 Re: Page Checksums