pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: marvin.deoliveira <marvin.deoliveira@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: corrupted rows in pg_attribute deleted
Date: Thu, 8 Sep 2011 06:28:39 -0700 (PDT)
Message-ID: <1315488519792-4782410.post@n5.nabble.com> (raw)
In-Reply-To: <CAGWYGjUsin-arRWMvdiNoGdmwVXXGSum21+U_Bgfej1+Q52Ltw@mail.gmail.com>
References: <1315339066571-4775814.post@n5.nabble.com>
	<CAGWYGjX7O43jznSbZb=9y+ziteaaYDX1ns5oAWCTYgcswDkiAA@mail.gmail.com>
	<1315343552982-4776113.post@n5.nabble.com>
	<CAGWYGjUsin-arRWMvdiNoGdmwVXXGSum21+U_Bgfej1+Q52Ltw@mail.gmail.com>

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.htm...
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.



view thread (9+ messages)  latest in thread

Message-ID: <1315488519792-4782410.post@n5.nabble.com>
Permalink:  ../1315488519792-4782410.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1315488519792-4782410.post@n5.nabble.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: marvin.deoliveira@gmail.com
  Subject: Re: corrupted rows in pg_attribute deleted
  In-Reply-To: <1315488519792-4782410.post@n5.nabble.com>

* 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