Re: corrupted rows in pg_attribute deleted - Mailing list pgsql-admin

From marvin.deoliveira
Subject Re: corrupted rows in pg_attribute deleted
Date
Msg-id 1315488519792-4782410.post@n5.nabble.com
Whole thread Raw
In response to Re: corrupted rows in pg_attribute deleted  (Lukasz Brodziak <lukasz.brodziak@gmail.com>)
Responses Re: corrupted rows in pg_attribute deleted  ("marvin.deoliveira" <marvin.deoliveira@gmail.com>)
List pgsql-admin
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.

pgsql-admin by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Query problem
Next
From: Richard Shaw
Date:
Subject: Moving database and schema to a new tablespace