Re: Data Corruption in case of abrupt failure

From: "Keith C(dot) Perry" <netadmin(at)vcsn(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Stephen Robert Norris <srn(at)commsecure(dot)com(dot)au>, satish satish <satish_ach2003(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Data Corruption in case of abrupt failure
Date: 2004-03-16 07:09:13
Message-ID: 1079420953.4056a81938821@webmail.vcsn.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Quoting Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

> Stephen Robert Norris <srn(at)commsecure(dot)com(dot)au> writes:
> > On Wed, 2004-03-03 at 23:27, satish satish wrote:
> >> I am trying to do some reliability tests on postgre SQL. I have
> >> use-case where the power can go off abruptly. I initiated 10,000
> >> insert operations and pulled out the cable in the middle. I had
> >> auto-commit option turned on. I observed 2 out of 5 times the tables
> >> were totally corrupted and could not read any data whereas 3 times I
> >> was able to read the data which was inserted.
>
> > We'll need more information - what OS and what version of PostgreSQL at
> > the least.
>
> I doubt this has anything to do with either the OS or the Postgres
> version. My money is on IDE drives with write cache enabled.
> Use drives that don't lie about write completion, and you'll be in
> good shape.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>

I've read threads like this before and because I've never lost data on servers
with IDE drives after doing some basic torture tests (e.g. pulling the plug in
the middle of an update et al), I don't think I've paid close enough attention.

Is there some definite way someone can test their IDE drives so see whether or
not they are "lying" about write completions? Perhaps someone somewhere has a
list of drives that are known to exhibit this problem- a IDE drive blacklist of
sorts?

--
Keith C. Perry, MS E.E.
Director of Networks & Applications
VCSN, Inc.
http://vcsn.com

____________________________________
This email account is being host by:
VCSN, Inc : http://vcsn.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2004-03-16 07:46:56 Re: Data Corruption in case of abrupt failure
Previous Message Tom Lane 2004-03-16 05:56:38 Re: Data Corruption in case of abrupt failure