Re: Block-level CRC checks - Mailing list pgsql-hackers

From Jonah H. Harris
Subject Re: Block-level CRC checks
Date
Msg-id 36e682920810020719g44a7dfd9of46b8fc0e233a718@mail.gmail.com
Whole thread Raw
In response to Re: Block-level CRC checks  (Andrew Chernow <ac@esilo.com>)
Responses Re: Block-level CRC checks
List pgsql-hackers
On Thu, Oct 2, 2008 at 10:09 AM, Andrew Chernow <ac@esilo.com> wrote:
> I read through this patch and am curious why 0xdeadbeef was used as an
> uninitialized value for the page crc.  Is this value somehow less likely to
> have collisons than zero (or any other arbitrary value)?

It was just an arbitrary value I chose to identify non-checksummed
pages; I believe would have the same collision rate as anything else.

> Would it not be better to add a boolean bit or byte to inidcate the crc
> state?

Ideally, though we don't have any spare bits to play with in MAXALIGN=4.

-- 
Jonah H. Harris, Senior DBA
myYearbook.com


pgsql-hackers by date:

Previous
From: Andrew Chernow
Date:
Subject: Re: Block-level CRC checks
Next
From: Heikki Linnakangas
Date:
Subject: Re: Block-level CRC checks