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