---
title: "What I learned from a month with WalShadow on ClickHouse Managed Postgres"
description: "WalShadow, which decodes physical Postgres WAL outside the database and writes blocks directly to ClickHouse, held median replication latency near 0.4 s from 1 to 200,000 rows/s on a 16 vCPU source."
url: "https://swe.quest/articles/what-i-learned-from-a-month-with-walshadow-on-clickhouse-managed-postgres-89e5a8963b72573d"
canonical: "https://clickhouse.com/blog/a-month-with-walshadow-clickhouse-managed-postgres"
source: "ClickHouse"
published: "2026-11-06"
difficulty: "medium"
kind: "Case study"
reading_minutes: 16
tags: ["postgres","replication","event-driven","analytics","performance"]
---

# What I learned from a month with WalShadow on ClickHouse Managed Postgres

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-11-06, 16 min read, Case study. Original: [https://clickhouse.com/blog/a-month-with-walshadow-clickhouse-managed-postgres](https://clickhouse.com/blog/a-month-with-walshadow-clickhouse-managed-postgres)

## Summary

WalShadow, which decodes physical Postgres WAL outside the database and writes blocks directly to ClickHouse, held median replication latency near 0.4 s from 1 to 200,000 rows/s on a 16 vCPU source. ClickPipes, which uses logical replication, tracked its Sync interval (about 31 s median at the 60 s default) and saturated around 50,000–55,000 rows/s regardless of interval or pipe compute size. Data matched exactly across source and both destinations, and schema changes, restarts, resizes and destination stops needed no manual action. Caveats include temporary cross-table inconsistency from parallel per-table writes, fixed \`\_commit\_ts\`/\`\_lsn\` on initially loaded rows that can break TTLs, materialized views seeing raw row versions, and commit-ordered delays behind large transactions.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- Postgres WAL and logical replication ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- change data capture
- ClickHouse MergeTree tables ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

WalShadow, ClickHouse Managed Postgres, ClickPipes, ClickHouse Cloud, PostgreSQL WAL, logical replication

## Related posts

- [Introducing WalShadow: Sub-second Postgres replication to ClickHouse from physical WAL](https://swe.quest/articles/introducing-walshadow-sub-second-postgres-replication-to-clickhouse-from-722f53f940cda679.md): ClickHouse · 2026-09-10 · Medium · 5 min read · PostgreSQL, Replication, Event-driven architecture, Analytics & OLAP, Performance engineering
  WalShadow is an open-source engine that replicates Postgres to ClickHouse by decoding the physical WAL stream outside the source database, instead of using logical replication slots.
- [Postgres at Open House NYC](https://swe.quest/articles/postgres-at-open-house-nyc-5b2de1c38cc64f40.md): ClickHouse · 2026-10-13 · Easy · 6 min read · PostgreSQL, Replication, Event-driven architecture, Analytics & OLAP
  ClickHouse used its Open House NYC keynote to launch WalShadow, an open-source engine that replicates Postgres into ClickHouse from the physical WAL instead of logical replication.
- [Postgres CDC in ClickHouse, A year in review](https://swe.quest/articles/postgres-cdc-in-clickhouse-a-year-in-review-6b9d350bcade98d4.md): ClickHouse · 2025-12-03 · Medium · 13 min read · PostgreSQL, Event-driven architecture, Data pipelines, Analytics & OLAP, Replication
  A year after PeerDB's acquisition, Postgres CDC into ClickHouse via ClickPipes has grown to 400+ companies replicating over 200 TB per month, driven by real-time customer-facing analytics and data warehousing workloads.
- [How Infinitas Learning uses ClickHouse Managed Postgres to process billions of events for 1.6M unique learners](https://swe.quest/articles/how-infinitas-learning-uses-clickhouse-managed-postgres-to-process-billions-of-eb20c949118daba4.md): ClickHouse · 2026-11-16 · Medium · 9 min read · Analytics & OLAP, PostgreSQL, Performance engineering, Caching, Databases
  Infinitas Learning runs transactional learner-result processing on Postgres, with PL/pgSQL functions serving as the API in place of an earlier Kafka/Flink event-sourced pipeline, and customer-facing analytics on ClickHouse.
- [Change Data Capture (CDC) with PostgreSQL and ClickHouse - Part 1](https://swe.quest/articles/change-data-capture-cdc-with-postgresql-and-clickhouse-part-1-10e3d601e2748dab.md): ClickHouse · 2023-06-15 · Medium · 23 min read · Event-driven architecture, PostgreSQL, Analytics & OLAP, Replication, Queues & messaging
  Postgres-to-ClickHouse CDC can be built by streaming row changes from Postgres logical decoding (pgoutput plugin, replication slots, LSN ordering) through Debezium and Kafka, then applying them in ClickHouse with the ReplacingMergeTree engine.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
