Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 35554B5DC3B for ; Thu, 8 Sep 2011 10:28:48 -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 02149-01 for ; Thu, 8 Sep 2011 13:28:41 +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 11864B5DC37 for ; Thu, 8 Sep 2011 10:28:40 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R1eel-0007DZ-Qp for pgsql-admin@postgresql.org; Thu, 08 Sep 2011 06:28:39 -0700 Date: Thu, 8 Sep 2011 06:28:39 -0700 (PDT) From: "marvin.deoliveira" To: pgsql-admin@postgresql.org Message-ID: <1315488519792-4782410.post@n5.nabble.com> In-Reply-To: References: <1315339066571-4775814.post@n5.nabble.com> <1315343552982-4776113.post@n5.nabble.com> Subject: Re: 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/34 X-Sequence-Number: 38271 I'm inserting rows in pg_attribute from a old version of the table. After that, the pg_class.relnatts field is updated with the result of: select count(*) from pg_attribute where attrelid = 167017 and attnum > 0 -- returns 24 So I try do drop the table to see if it works and I get a message like this: An error has occurred: ERROR: invalid attribute number 25 for fase_laudo_apac The curious thing is if I delete or insert another row, the number in the error message is always the actual numbers of rows +1 (as we see above). what is wrong? ----- Marcos Oliveira -- View this message in context: http://postgresql.1045698.n5.nabble.com/corrupted-rows-in-pg-attribute-deleted-tp4775814p4782410.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.