X-Original-To: pgsql-general@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D81FD476036 for ; Thu, 10 Apr 2003 14:04:04 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id ABAE2475F5F for ; Thu, 10 Apr 2003 14:04:02 -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 h3AI402L005439; Thu, 10 Apr 2003 14:04:00 -0400 (EDT) To: Amir Becher Cc: pgsql-general@postgresql.org Subject: Re: Corrupt index In-reply-to: <20030410172120.98514.qmail@web13904.mail.yahoo.com> References: <20030410172120.98514.qmail@web13904.mail.yahoo.com> Comments: In-reply-to Amir Becher message dated "Thu, 10 Apr 2003 10:21:20 -0700" Date: Thu, 10 Apr 2003 14:04:00 -0400 Message-ID: <5438.1049997840@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/646 X-Sequence-Number: 40711 Amir Becher writes: > Here is an example of the misbehavior that I am > seeing: > [snip] > The main point is that "column_a" is the wrong number. Hmm. This looks like you must have an index entry pointing at the wrong heap tuple. Which is not something we hear of regularly, and certainly not an error that I'd expect to see appearing in isolation. You didn't say in so many words, but should I take it that (a) this pattern of misbehavior (wrong row returned) occurs repeatedly for you, and (b) there are no other signs of problems (backend unexpectedly quits, strange error messages, that sort of thing)? I can't really think of any plausible mechanism for this to happen, except for the index and table files getting out of sync somehow. Are you doing anything that operates directly on the database files (for example, doing backup/restore with cp or tar or some such)? regards, tom lane