You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clickhouse version affected 22.3.7.28, 22.8.1.2097
postgres 14
Imaging following table in postgresql.
--postgresCREATETABLEtest (
id integerPRIMARY KEY,
x double precision,
y double precision GENERATED ALWAYS AS (x*2) STORED
);
insert into test values (1,1);
insert into test values (2,2);
then at clickhouse create
-- clickhouseCREATEDATABASEIF NOT EXISTS {REPLICATION_IDENTIFIER:Identifier}
ENGINE = MaterializedPostgreSQL('db:5432', database', 'login', 'pass')SETTINGS materialized_postgresql_tables_list='test';// Wait until SELECT name, total_rows FROM system.tables WHERE database = 'pg'; // gives 2 rows
do
-- clickhouseselect*frompg.test
Everything is fine, all 3 columns are visible id, x, y
Now at postgresql delete column
-- postgresdeletefrom test where id =2;
Update will not be replicated. In logs will be
<Warning> PostgreSQLReplicaConsumer(scrapers): Table test (relation_id: 61753011) is skipped, because table schema has changed
I think, but not sure 100% it's because of this check
Clickhouse version affected 22.3.7.28, 22.8.1.2097
postgres 14
Imaging following table in postgresql.
then at clickhouse create
do
Everything is fine, all 3 columns are visible
id, x, y
Now at postgresql delete column
Update will not be replicated. In logs will be
I think, but not sure 100% it's because of this check
ClickHouse/src/Storages/PostgreSQL/MaterializedPostgreSQLConsumer.cpp
Lines 500 to 504 in 5e86d6c
because no other warnings etc are seen in the log.
without
GENERATED
columns all is fine.The text was updated successfully, but these errors were encountered: