Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E9C0EB5DC0A for ; Tue, 6 Sep 2011 16:57:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 93597-08 for ; Tue, 6 Sep 2011 19:57:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 31D69B5DC05 for ; Tue, 6 Sep 2011 16:57:47 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R11mE-0006ZD-Js for pgsql-admin@postgresql.org; Tue, 06 Sep 2011 12:57:46 -0700 Date: Tue, 6 Sep 2011 12:57:46 -0700 (PDT) From: "marvin.deoliveira" To: pgsql-admin@postgresql.org Message-ID: <1315339066571-4775814.post@n5.nabble.com> Subject: corrupted rows in pg_attribute deleted MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201109/21 X-Sequence-Number: 38258 -------------------------------------- | Postgres Version 9.0.2 | -------------------------------------- After a Kernel Panic in Debian 5, we found corrupted rows in pg_attribute about 2 tables. I deleted the rows and updated the pg_class.relnatts with the result of: SELECT count(*) FROM pg_attribute WHERE attnum > 0 AND attrelid = 167017 -- Returned 22 rows. where 167017 is the one of the tables OID. Now I got the following messages: 1 - When PgAdmin III list the table structure for the first time: ERROR: invalid attribute number 23 for fase_laudo_apac LINE 1: Select count(*) as rows from only fase_laudo_apac 2- When I tried to drop the fase_laudo_apac table: An error has occourred: ERROR: cache lookup failed for attribute 3 of relation 167045 Any help will be really appreciated ----- Marcos Oliveira -- View this message in context: http://postgresql.1045698.n5.nabble.com/corrupted-rows-in-pg-attribute-deleted-tp4775814p4775814.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.