ClickhouseBenchmark
What I learned from a month with WalShadow on ClickHouse Managed Postgres
Summary
A database engineer tested WalShadow, a managed replication method in ClickHouse Managed Postgres, during a Private Preview. WalShadow reads the physical WAL directly, bypassing logical replication, and writes changes to ClickHouse as blocks. In side-by-side tests with ClickPipes, WalShadow maintained a median latency of about 0.4 seconds at write rates from 1,000 to 200,000 rows per second, while ClickPipes latency grew beyond 50,000 rows per second regardless of settings. Replication continued through schema changes, source restarts, and destination auto-idle without manual intervention. The author notes caveats around table selection, destination table usage, and large transactions, and confirmed that issues reported during the preview were fixed.
Context
The author tested WalShadow, a managed replication method in ClickHouse Managed Postgres, during a Private Preview in September and October 2026. The goal was to compare its replication latency with ClickPipes, verify data correctness, and observe behavior under operational events.
Approach / What changed
WalShadow reads the physical WAL of ClickHouse Managed Postgres, decodes it outside Postgres, and writes the result directly to ClickHouse as blocks, bypassing logical replication.
Takeaways
WalShadow median latency was about 0.4 seconds at every write rate from 1,000 to 200,000 rows per second, while ClickPipes latency grew beyond 50,000 rows per second.
WalShadow reads the physical WAL directly, which is possible because ClickHouse manages both the Postgres source and the ClickHouse destination.
Replication continued through schema changes, source restarts and resizes, and destination stops and auto-idle without any manual intervention.
FAQ
How does WalShadow achieve lower latency than ClickPipes?
WalShadow reads the physical WAL directly, which is possible because ClickHouse manages both the Postgres source and the ClickHouse destination. This avoids the overhead of logical replication and keeps latency nearly constant even at high write rates.
What trade-off does the Flush timeout setting control?
WalShadow has a Flush timeout setting that controls the maximum time it waits before writing to the destination. Tuning this interval trades replication delay against write frequency, up to the write rate the pipe can process.
What caveats exist when using WalShadow destination tables?
Changes to different tables in one transaction may become visible in ClickHouse at different moments. The author also notes that using the destination tables comes with a few caveats stemming from how WalShadow works.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.