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

pg_class corrupted ?

From: Bruno THOMAS <bthomas(at)alea(dot)fr>
To: pgsql-admin(at)postgresql(dot)org
Subject: pg_class corrupted ?
Date: 2004-06-17 12:05:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Hi all,

After a severe HD crash and the impossibility to read old DAT with our 
new DAT drive, I've been able to copy $PGDATA/base/mabase on a new HD. 
I've found all the tables data, and even the java intranet based on it 
is working fine.

My problem is that when I tried to make a dump of the copied DB for a 
new backup I've had the following error :
pg_dump: query to obtain list of tables failed: ERROR:  Relation 
pg_class does not have attribute 1

I can run psql but \dt causes this error :
ERROR:  Relation pg_class does not have attribute 3

I can make a select * from pg_class but when I select a column from it 
(i.e. 'select relname from pg_class'), I have the error again :
ERROR:  Relation pg_class does not have attribute 1.

As I'm not a specialist, I can't find a solution or workaround for this 
problem, I've not been able to find a solution on the net or forums. 
Anybody has an idea ?


Bruno Thomas

PS: postresql version is 7.2.1


pgsql-admin by date

Next:From: HarryDate: 2004-06-17 12:59:17
Subject: initdb problem (Win2K Pro, cygwin)
Previous:From: H.J. SandersDate: 2004-06-17 10:41:34
Subject: auto start

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