X-Original-To: pgsql-general@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 457E1475ED4 for ; Thu, 10 Apr 2003 15:50:41 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 862C9474E42 for ; Thu, 10 Apr 2003 15:50:40 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3AJof2L006079; Thu, 10 Apr 2003 15:50:41 -0400 (EDT) To: Amir Becher Cc: pgsql-general@postgresql.org Subject: Re: Corrupt index In-reply-to: <20030410185517.81295.qmail@web13907.mail.yahoo.com> References: <20030410185517.81295.qmail@web13907.mail.yahoo.com> Comments: In-reply-to Amir Becher message dated "Thu, 10 Apr 2003 11:55:17 -0700" Date: Thu, 10 Apr 2003 15:50:40 -0400 Message-ID: <6078.1050004240@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-29.3 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/651 X-Sequence-Number: 40716 Amir Becher 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