Re: [GENERAL] Undetected corruption of table files - Mailing list pgsql-hackers

From Jan Wieck
Subject Re: [GENERAL] Undetected corruption of table files
Date
Msg-id 46D804CB.5020807@Yahoo.com
Whole thread Raw
In response to Re: [GENERAL] Undetected corruption of table files  ("Albe Laurenz" <all@adv.magwien.gv.at>)
List pgsql-hackers
On 8/28/2007 4:14 AM, Albe Laurenz wrote:
> Not all databases are on enterprise scale storage systems, and
> there's also the small possibility of PostgreSQL bugs that could
> be detected that way.

Computing a checksum just before writing the block will NOT detect any 
faulty memory or Postgres bug that corrupted the block. You will have a 
perfectly fine checksum over the corrupted data.

A checksum only detects corruptions that happen between write and read. 
Most data corruptions that happen during that time however lead to some 
sort of read error reported by the disk.


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Performing antijoin in postgres
Next
From: "Albe Laurenz"
Date:
Subject: Re: [GENERAL] Undetected corruption of table files