Re: [GENERAL] pg.dropped

2010-01-11 Thread Tom Lane
=?UTF-8?Q?Filip_Rembia=C5=82kowski?= writes: > Full test case, reproduced in 8.4.2 on two different hosts > create table test (id serial primary key, t1 text, t2 text); > create function myhash(test) returns text as 'select md5($1::text)' language > sql immutable; > create index myhash on test( m

Re: [GENERAL] pg.dropped

2010-01-08 Thread Tom Lane
=?UTF-8?Q?Filip_Rembia=C5=82kowski?= writes: > create table test (id serial primary key, t1 text, t2 text); > create function myhash(test) returns text as 'select md5($1::text)' language > sql immutable; > create index myhash on test( myhash(test) ); > alter table test add t3 text; > alter table t

Re: [GENERAL] pg.dropped

2010-01-08 Thread Filip Rembiałkowski
Full test case, reproduced in 8.4.2 on two different hosts create table test (id serial primary key, t1 text, t2 text); create function myhash(test) returns text as 'select md5($1::text)' language sql immutable; create index myhash on test( myhash(test) ); alter table test add t3 text; alter table

Re: [GENERAL] pg.dropped

2010-01-07 Thread Greg Smith
Filip Rembiałkowski wrote: After dropping a column from table, there is still entry in pg_attribute fi...@la_dev=# select * from pg_attribute where attrelid = (select oid from pg_class where relname='thetable') order by attnum desc limit 1; -[ RECORD 1 ]-+-- attreli

Re: [GENERAL] pg.dropped

2010-01-07 Thread Tom Lane
=?UTF-8?Q?Filip_Rembia=C5=82kowski?= writes: > INSERT INTO thetable ( ... ) VALUES ( ... ); > ERROR: table row type and query-specified row type do not match If you want any help with this you need to show a *complete* example of how to produce this failure. regards, tom

[GENERAL] pg.dropped

2010-01-07 Thread Filip Rembiałkowski
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 fi...@la_dev=# select * from pg_attribute where attrelid = (select oid from pg_class where relname='thetable') order by att