Re: Enabling Checksums - Mailing list pgsql-hackers

From Florian Pflug
Subject Re: Enabling Checksums
Date
Msg-id D5C7221E-2913-43CD-8973-1CE21219259A@phlo.org
Whole thread Raw
In response to Re: Enabling Checksums  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Enabling Checksums
Re: Enabling Checksums
List pgsql-hackers
On Apr18, 2013, at 19:04 , Jeff Davis <pgsql@j-davis.com> wrote:
> On Wed, 2013-04-17 at 20:21 -0400, Greg Smith wrote:
>> -Original checksum feature used Fletcher checksums.  Its main problems, 
>> to quote wikipedia, include that it "cannot distinguish between blocks 
>> of all 0 bits and blocks of all 1 bits".
> 
> That is fairly easy to fix by using a different modulus: 251 vs 255.

At the expense of a drastic performance hit though, no? Modulus operations
aren't exactly cheap.

best regards,
Florian Pflug




pgsql-hackers by date:

Previous
From: Florian Weimer
Date:
Subject: Re: Enabling Checksums
Next
From: Ants Aasma
Date:
Subject: Re: Enabling Checksums