Re: 16-bit page checksums for 9.2 - Mailing list pgsql-hackers

From Greg Smith
Subject Re: 16-bit page checksums for 9.2
Date
Msg-id 4F0BBE30.4030707@2ndQuadrant.com
Whole thread Raw
In response to Re: 16-bit page checksums for 9.2  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On 1/7/12 5:26 AM, Heikki Linnakangas wrote:
> Perhaps there
> needs to be a third setting, calculate-but-dont-verify, where CRCs are
> updated but existing CRCs are not expected to be correct. And a utility
> to scan through your database and fix any incorrect CRCs, so that after
> that's run in calculate-but-dont-verify mode, you can safely turn
> checksums on.

The users of any feature like this are eventually going to demand a 
"scrubbing" utility that validates the checksums in a background task. 
Doing something like pg_dump just to validate your copy of the data is 
still clean is not a great approach.  If you accept that sort of utility 
is inevitable, you might as well presume it could handle this sort of 
task eventually too.


-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com


pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: WIP(!) Double Writes
Next
From: Tom Lane
Date:
Subject: Re: Sending notifications from the master to the standby