pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno THOMAS <bthomas@alea.fr>
To: pgsql-admin@postgresql.org
Subject: pg_class corrupted ?
Date: Thu, 17 Jun 2004 14:05:53 +0200
Message-ID: <40D18921.3000609@alea.fr> (raw)

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 ?

Thanks.

Bruno Thomas

PS: postresql version is 7.2.1




view thread (4+ messages)  latest in thread

Message-ID: <40D18921.3000609@alea.fr>
Permalink:  ../40D18921.3000609@alea.fr/
Also on:    postgresql.org/message-id/40D18921.3000609@alea.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bthomas@alea.fr
  Subject: Re: pg_class corrupted ?
  In-Reply-To: <40D18921.3000609@alea.fr>
  References: <40D18921.3000609@alea.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox