pg.dropped - Mailing list pgsql-general

From Filip Rembiałkowski
Subject pg.dropped
Date
Msg-id 92869e661001070822n570ecb14kbf5e602fa97c0963@mail.gmail.com
Whole thread Raw
Responses Re: pg.dropped  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pg.dropped  (Greg Smith <greg@2ndquadrant.com>)
List pgsql-general
Hi all,

I have a deja vu or I had this very problem before.

Now I use 8.4.2 and it happened again.

After dropping a column from table, there is still entry in pg_attribute

filip@la_dev=# select * from pg_attribute where attrelid = (select oid from pg_class where relname='thetable') order by attnum desc limit 1;
-[ RECORD 1 ]-+------------------------------
attrelid      | 4753849
attname       | ........pg.dropped.69........
atttypid      | 0
attstattarget | 0
attlen        | 1
attnum        | 69
attndims      | 0
attcacheoff   | -1
atttypmod     | -1
attbyval      | t
attstorage    | p
attalign      | c
attnotnull    | f
atthasdef     | f
attisdropped  | t
attislocal    | t
attinhcount   | 0
attacl        | <NULL>


And of course this makes my INSERT not working...

INSERT INTO thetable ( ... ) VALUES ( ... );
ERROR:  table row type and query-specified row type do not match
DETAIL:  Physical storage mismatch on dropped attribute at ordinal position 69.

Any clues / hint how to NEVER get into this again?


TIA.


--
Filip Rembiałkowski
JID,mailto:filip.rembialkowski@gmail.com
http://filip.rembialkowski.net/

pgsql-general by date:

Previous
From: Adrian von Bidder
Date:
Subject: Re: Minimizing disk space
Next
From: Vincenzo Romano
Date:
Subject: Ideas and critics are welcome