Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group