Re: Why database is corrupted after re-booting

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Youngblood <pgcluster(at)netio(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Why database is corrupted after re-booting
Date: 2005-10-26 16:50:07
Message-ID: 7303.1130345407@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gregory Youngblood <pgcluster(at)netio(dot)org> writes:
> Is corruption a problem? I don't think so - but I want to make sure I
> haven't had my head in the sand for a while. :) I realize this instance
> appears to be on Windows, which is relatively new as a native Windows
> program. I'm really after the answer on more mature platforms (including
> Linux).

It's been quite some time since I've seen an instance of data corruption
that appeared to be due to a Postgres bug. (At least, not corruption in
tables ... we've had some index bugs, but those you can always fix with
REINDEX.) I have seen lots of cases that seemed to be due to hardware
or OS misfeasance, eg, disk sectors filled with data that didn't come
from Postgres at all.

You can reduce your exposure by making sure things are correctly
configured (eg, disable write caching, or better yet don't use
consumer-grade drives at all). In the end there's no substitute
for a good backup policy ;-)

AFAICS mysql will have exactly the same problems. So will oracle or
any other DB. Oracle may have a better looking track record, but
that's probably because people don't try to run it on cheap junk PCs.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2005-10-26 17:10:10 Re: Why database is corrupted after re-booting
Previous Message Welty, Richard 2005-10-26 16:40:53 Re: Why database is corrupted after re-booting