Re: duplicate primary index in bayes db from SpamAssassin - Mailing list pgsql-admin

From Tom Lane
Subject Re: duplicate primary index in bayes db from SpamAssassin
Date
Msg-id 2174.1208477723@sss.pgh.pa.us
Whole thread Raw
In response to Re: duplicate primary index in bayes db from SpamAssassin  (Michael Monnerie <michael.monnerie@it-management.at>)
List pgsql-admin
Michael Monnerie <michael.monnerie@it-management.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

pgsql-admin by date:

Previous
From: "Bhella Paramjeet-PFCW67"
Date:
Subject: Vacuumdb error
Next
From: Tom Lane
Date:
Subject: Re: Vacuumdb error