talira

Fast, simple and cost-effective Postgres replication

open sourceAGPL-3.0-onlyself-hostablefree

PeerDB is an open source tool for change data capture (CDC) from Postgres: it streams inserts, updates, deletes and schema changes from a Postgres replication slot into destinations such as ClickHouse, with latency from about 10 seconds, after a fast, consistent parallel initial load. It handles TOAST columns and large JSONB values, partitioned tables and schema changes, alerts on replication slot growth, and you manage it with SQL over psql or its web UI. It runs with Docker Compose and Temporal. ClickHouse, which acquired PeerDB in 2024, offers it hosted as the Postgres CDC connector of ClickPipes in ClickHouse Cloud.

Problems it solves

  • replicate my Postgres tables to ClickHouse in real time for analytics
  • stream Postgres changes to a warehouse without Debezium and Kafka
  • a faster alternative to Fivetran or Airbyte for Postgres CDC
  • keep ClickHouse in sync with Postgres including schema changes

Features

  • Postgres CDC from replication slots
  • parallel initial load with transaction snapshots and CTID scans
  • schema change replication
  • TOAST and large JSONB column support
  • partitioned tables
  • slot growth and connection alerts
  • low-latency replication from about 10 seconds
  • SQL interface over psql and a web UI

Limitations

  • Its query and XMIN replication modes and its Snowflake, BigQuery, Elasticsearch, Kafka, Event Hubs, Pub/Sub and S3 destinations are deprecated and no longer actively maintained.1

Alternatives

The same job

These do what PeerDB does.

  1. Debezium Open source change data capture: stream changes from your database
  2. Redpanda Connect 300+ connectors, declarative YAML pipelines

Compare PeerDB with the top 3