Home > pgsql > Slony-IがCOPYでコケる

Slony-IがCOPYでコケる

調べてみるとどうやら、alter table drop columnで削除されたカラムがあるとコケる模様。この時 pg_attribute は、

ishida=# create table t1 (i1 int, i2 int);
CREATE TABLE
ishida=# alter table t1 drop column i2;
ALTER TABLE
ishida=#  select attname, attisdropped from pg_attribute
 where attnum > 0 and attrelid = 
(select oid from pg_class where relname = 't1');
           attname            | attisdropped 
------------------------------+--------------
 i1                           | f
 ........pg.dropped.2........ | t
(2 rows)

こんな感じでゴミが残ってる状態になってるんだけど、その attname を拾ってしまっているようだ 。

これはもう全力でバグレポートを書きにいったら、既知の現象だったらしい。一週間前に報告されたのカヨ。

error copying dropped columns

Writeback:0

Comment Form

writeback message: Ready to post a comment.

TrackBack ping me at
http://www.mono-space.net/blog/pgsql/051011_slony_bug.trackback

Page Top