X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9A4FBD1B8E0 for ; Thu, 17 Jun 2004 09:10:34 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78717-07 for ; Thu, 17 Jun 2004 12:10:21 +0000 (GMT) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by svr1.postgresql.org (Postfix) with ESMTP id D143AD1B281 for ; Thu, 17 Jun 2004 09:09:25 -0300 (ADT) Received: from alea.fr (pauguste-1-81-57-54-85.fbx.proxad.net [81.57.54.85]) by postfix4-2.free.fr (Postfix) with ESMTP id B9CC719304B for ; Thu, 17 Jun 2004 14:09:06 +0200 (CEST) Message-ID: <40D18921.3000609@alea.fr> Date: Thu, 17 Jun 2004 14:05:53 +0200 From: Bruno THOMAS User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: fr-fr MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: pg_class corrupted ? Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/218 X-Sequence-Number: 13878 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