From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amir Becher <abecher@yahoo.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Corrupt index
Date: Thu, 10 Apr 2003 15:50:40 -0400
Message-ID: <6078.1050004240@sss.pgh.pa.us> (raw)
In-Reply-To: <20030410185517.81295.qmail@web13907.mail.yahoo.com>
References: <20030410185517.81295.qmail@web13907.mail.yahoo.com>
Amir Becher <abecher@yahoo.com> writes:
> I don't know if this may have something to do with it,
> but we do backup the data every night using VERITAS
> Backup Exec. We are not restoring anything, though
> (the data is backed up to tape). The VERITAS software
> runs on Windows, but there is an agent that runs on
> our Linux box where the PostgreSQL data is stored. I
> should also mention that the backup is running while
> the database is being modified (we modify the database
> 24/7).
You're wasting your time making such a backup --- if you ever have to
use it, it'll be corrupt, because the individual files in the database
won't be in sync. But that's not the immediate problem.
> There is another unexpected behavior that I noticed
> for the first time this morning (so I am not sure if
> it's recurring, related or relevant). The database
> "blinked" in the sense that all database connections
> were lost - but new connections could be obtained
> immediately after the "blink". The error message that
> I got said something about possible "corrupted shared
> memory" and I guess the shutting down of the
> connections was a precautionary measure.
That sounds like a backend crash, all right. Given that, I'm thinking
that you have more extensive problems than just this one symptom. The
odds are good that it's a hardware issue, because we haven't heard any
reports of comparable misbehavior from anyone else.
I'd recommend running some hardware diagnostics --- memtest86 and
badblocks seem to be the most widely used, although they aren't always
able to find problems.
It would also be a good idea to start taking some *real* backups, using
pg_dump or pg_dumpall. You will be lucky if you don't find any more
serious corruption in the database, if I'm right that there's hardware
flakiness involved. You may find yourself forced to initdb and restore
from a backup, so you'd better have one.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, abecher@yahoo.com
Subject: Re: Corrupt index
In-Reply-To: <6078.1050004240@sss.pgh.pa.us>
References: <20030410185517.81295.qmail@web13907.mail.yahoo.com> <6078.1050004240@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox