Re: duplicate primary index in bayes db from SpamAssassin

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Monnerie <michael(dot)monnerie(at)it-management(dot)at>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: duplicate primary index in bayes db from SpamAssassin
Date: 2008-04-18 00:15:23
Message-ID: 2174.1208477723@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Michael Monnerie <michael(dot)monnerie(at)it-management(dot)at> 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2008-04-18 00:18:05 Re: Vacuumdb error
Previous Message Michael Monnerie 2008-04-17 23:28:14 Re: duplicate primary index in bayes db from SpamAssassin