---
title: "ClickPipes for Postgres now supports failover replication slots"
description: "Postgres ClickPipes can now create logical replication slots with failover enabled, so CDC pipelines into ClickHouse survive a primary-to-standby promotion."
url: "https://swe.quest/articles/clickpipes-for-postgres-now-supports-failover-replication-slots-63903c6595faed76"
canonical: "https://clickhouse.com/blog/clickpipes-postgres-failover-replication"
source: "ClickHouse"
published: "2025-11-11"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 3
tags: ["postgres","replication","event-driven","analytics"]
---

# ClickPipes for Postgres now supports failover replication slots

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-11-11, 3 min read, Announcement. Original: [https://clickhouse.com/blog/clickpipes-postgres-failover-replication](https://clickhouse.com/blog/clickpipes-postgres-failover-replication)

## Summary

Postgres ClickPipes can now create logical replication slots with failover enabled, so CDC pipelines into ClickHouse survive a primary-to-standby promotion. The feature depends on Postgres 17 logical replication failover. Both primary and standby must run Postgres 17+, with the standby using a physical replication slot and synchronous commit configured. hot\_standby\_feedback and sync\_replication\_slots must be enabled on the standby, and the standby's physical slot must be added to synchronized\_standby\_slots on the primary so the standby never lags the ClickPipe. You can confirm it works by checking pg\_replication\_slots on the standby for a mirror\_ slot with synced and failover set to true.

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)

## Prerequisites

- Postgres logical replication ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Postgres hot standbys ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- change data capture

## Keywords

ClickPipes, ClickHouse, PostgreSQL 17, logical replication failover, PeerDB, pg\_replication\_slots

## Related posts

- [Blocking cutovers to save replication slots](https://swe.quest/articles/blocking-cutovers-to-save-replication-slots-d52d9d5fcc4a6789.md): PlanetScale · 2026-09-21 · Medium · 5 min read · PostgreSQL, Replication, Event-driven architecture, Deployment
  PlanetScale Postgres blocks planned cutovers (resizes, parameter changes, maintenance) when logical replication slots aren't synchronized to the replica being promoted, because vanilla Postgres will promote a replica without the slot and silently break CDC consumers.
- [Building an enterprise Postgres service in ClickHouse Cloud](https://swe.quest/articles/building-an-enterprise-postgres-service-in-clickhouse-cloud-d1a33138c29d5132.md): ClickHouse · 2026-02-20 · Easy · 5 min read · PostgreSQL, Replication, Event-driven architecture, Security
  ClickHouse Cloud's managed Postgres runs on NVMe with up to two cross-AZ synchronous standbys using quorum commit (acknowledged when one standby confirms) and automatic failover.
- [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.
- [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.
- [Designing a planned switchover for minimum disruption](https://swe.quest/articles/designing-a-planned-switchover-for-minimum-disruption-c09f9387b5a40465.md): PlanetScale · 2026-10-29 · Hard · 8 min read · PostgreSQL, Replication, Resilience, Deployment
  Neki performs planned Postgres primary switchovers without stopping the old primary.

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)
