confluentinc / bottledwater-pg

Change data capture from PostgreSQL into Kafka
http://blog.confluent.io/2015/04/23/bottled-water-real-time-integration-of-postgresql-and-kafka/
Apache License 2.0
2 stars 149 forks source link

Adding a new column with a default value does not stream changes #81

Open pablomolnar opened 8 years ago

pablomolnar commented 8 years ago

Not sure if this is a current known limitation or a bug but here we go:

create table test (id serial primary key, value text);
insert into test (value) values('hello world!');
ALTER TABLE test ADD COLUMN my_new_column text NOT NULL DEFAULT 'foo';

Expected behavior: Since row state changed an new event in Kafka is expected Current behavior: No new event

badboyd commented 8 years ago

Logical decoding cannot replicate DDL changes, so it's a current known limitation. You can read this