Re: catalog corruption causes

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: "Burgholzer, Robert (DEQ)" <Robert(dot)Burgholzer(at)deq(dot)virginia(dot)gov>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: catalog corruption causes
Date: 2010-08-06 20:54:47
Message-ID: AANLkTikmdKpFzXWwyMtyo-uUn6kixkJ-jihNmbK=oz-T@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, Aug 6, 2010 at 12:28 PM, Burgholzer, Robert (DEQ)
<Robert(dot)Burgholzer(at)deq(dot)virginia(dot)gov> wrote:
> I am trying to get my head around what causes catalog corruption.  I
> have posted before with regard to recovering from corruptions (if that
> is what indeed happened to me), and was given much help.
>
> Does anyone know why a database catalog will get corrupted?  As I
> mentioned previously, my db involves considerable use of temporary
> tables created by php-psql connections.  Other than that, I don't know
> of too much that is "odd" about my use (misuse) of the database.

Two most common causes are bad memory / hard drives / cpu and a
machine that doesn't fsync properly crashing and losing part of a
write to the disks.

memtest86+ will give you an idea if your hardware (cpu / mem) are
stable and reliable. SMART can tell you if your hard drives are
acting up. pgbench can tell you if your system is lying about fsync
(a single SATA drive shouldn't be able to do more than a few hundred
tps).

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2010-08-06 20:56:30 Re: catalog corruption causes
Previous Message Heikki Linnakangas 2010-08-06 19:53:55 Re: [HACKERS] postgres 9.0 crash when bringing up hot standby