---
title: "ClickHouse Partnership, improved Postgres Replication, and Disk Management"
description: "Supabase and ClickHouse are partnering around a Postgres-for-transactions, ClickHouse-for-analytics stack that is becoming common among AI companies."
url: "https://swe.quest/articles/clickhouse-partnership-improved-postgres-replication-and-disk-management-fc24b5541354f1b8"
canonical: "https://supabase.com/blog/supabase-clickhouse-partnership"
source: "Supabase"
published: "2024-10-30"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 4
tags: ["postgres","analytics","replication","event-driven"]
---

# ClickHouse Partnership, improved Postgres Replication, and Disk Management

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2024-10-30, 4 min read, Announcement. Original: [https://supabase.com/blog/supabase-clickhouse-partnership](https://supabase.com/blog/supabase-clickhouse-partnership)

## Summary

Supabase and ClickHouse are partnering around a Postgres-for-transactions, ClickHouse-for-analytics stack that is becoming common among AI companies. The Supabase ClickHouse foreign data wrapper now supports ClickHouse parameterized views, so query parameters can be passed from Postgres into ClickHouse. Thirteen Postgres replication and memory parameters, including max\_slot\_wal\_keep\_size and max\_wal\_size, are now configurable through the CLI. This targets PeerDB CDC pipelines, where the default 1GB WAL limit could cause data loss. Disk space can also be split between database and WAL, for example 6GB/2GB on the Pro plan.

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)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)

## Prerequisites

- Postgres WAL and replication slots ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- OLAP vs OLTP databases ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

Supabase, ClickHouse, PeerDB, clickhouse\_fdw, Postgres WAL, Helicone

## Related posts

- [PostgreSQL + ClickHouse as the Open Source unified data stack](https://swe.quest/articles/postgresql-clickhouse-as-the-open-source-unified-data-stack-2760f19ba52907df.md): ClickHouse · 2026-01-27 · Easy · 5 min read · PostgreSQL, Analytics & OLAP, Event-driven architecture, Replication
  An open source stack pairs PostgreSQL as the transactional system of record with ClickHouse for analytics, connected by PeerDB for change data capture and the pg\_clickhouse extension, which transparently offloads analytical queries from Postgres to ClickHouse.
- [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.
- [Enhancing Postgres to ClickHouse replication using PeerDB](https://swe.quest/articles/enhancing-postgres-to-clickhouse-replication-using-peerdb-3be51f7c6d9f7329.md): ClickHouse · 2024-08-14 · Medium · 4 min read · PostgreSQL, Replication, Event-driven architecture, Analytics & OLAP, Identity & auth
  PeerDB hardened its Postgres-to-ClickHouse CDC pipeline in four ways.
- [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.
- [A universal interface: How QuintoAndar made ClickHouse plug-and-play with managed Postgres](https://swe.quest/articles/a-universal-interface-how-quintoandar-made-clickhouse-plug-and-play-with-ec413a5dd96fc04f.md): ClickHouse · 2026-08-27 · Easy · 6 min read · Analytics & OLAP, PostgreSQL, Data pipelines, System design
  QuintoAndar's customer data platform replaced a Lambda architecture (a Postgres hot layer plus Kafka Connect into a Delta landing zone processed by 24/7 Databricks jobs with costly MERGE INTO deduplication) by having its event gateway write about 900 million monthly events directly into ClickHouse Cloud, which also serves roughly 300 million API requests a month with sub-second reads.

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)
