Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 609F92E009C for ; Thu, 17 Apr 2008 21:17:22 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48664-02 for ; Thu, 17 Apr 2008 21:17:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id EFDF92E0069 for ; Thu, 17 Apr 2008 21:16:40 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m3I0FNiW002175; Thu, 17 Apr 2008 20:15:24 -0400 (EDT) To: Michael Monnerie cc: pgsql-admin@postgresql.org Subject: Re: duplicate primary index in bayes db from SpamAssassin In-reply-to: <200804180120.25335@zmi.at> References: <200804141757.21574@zmi.at> <200804170945.51400@zmi.at> <20473.1208446891@sss.pgh.pa.us> <200804180120.25335@zmi.at> Comments: In-reply-to Michael Monnerie message dated "Fri, 18 Apr 2008 01:20:24 +0200" Date: Thu, 17 Apr 2008 20:15:23 -0400 Message-ID: <2174.1208477723@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/186 X-Sequence-Number: 28950 Michael Monnerie writes: > On Donnerstag, 17. April 2008 Tom Lane wrote: >> Before you zap the database, would you be willing to make the actual >> database files (not a dump, but the stored files) available?  I'd >> be interested to take a closer look at that index. > Yes, could you please give me the quick hint how to find out which > SELECT I must do to find the correct directory to a database? I saw it > once, but... many other things got stored in my brain in between, so I > VACUUMed that information out ;-) SELECT oid, datname FROM pg_database; The stuff I need to look at is under $PGDATA/base/OID/. Please also send the results of SELECT relfilenode, relname FROM pg_class; in the busted database --- that'll save trying to claw it out of pg_class by hand. regards, tom lane