peerdb
peerdb copied to clipboard
PG INET loses a subnet during CDC
Steps to reproduce:
create table test_inet(id serial primary key, i inet);insert into test_inet(i) values('10.0.0.0/32'::inet);- Create a mirror from this PG into ClickHouse
insert into test_inet(i) values('10.0.0.0/32'::inet);- First value is
10.0.0.0/32, second becomes10.0.0.0
In PostgresConnector.parseFieldFromPostgresOID the value is already a string without a subnet.