Estuary

Real-time Change Data Capture for Postgres with Estuary

TUTORIALS10/20/2026

Learn how to set up PostgreSQL Change Data Capture (CDC) for real-time data replication using Estuary. This step-by-step tutorial explains how Postgres CDC works with the write-ahead log (WAL), logical replication, publications, and replication slots, then walks through creating a PostgreSQL CDC capture in Estuary.

How does PostgreSQL CDC work?

PostgreSQL records database changes in its write-ahead log (WAL). Log-based CDC uses logical replication to capture committed inserts, updates, and deletes without repeatedly polling the source tables.

A publication defines which tables are included, while a replication slot tracks the consumer's progress through the WAL.

Estuary can backfill existing PostgreSQL data and then continuously capture changes into reusable collections that can feed destinations such as Snowflake, ClickHouse, Databricks, and more.

What you'll learn:
- How PostgreSQL CDC works using WAL and logical replication
- How publications and replication slots work
- PostgreSQL CDC vs. batch data extraction
- How to configure a PostgreSQL CDC connector in Estuary
- Supported Postgres platforms, including Amazon RDS, Aurora, Cloud SQL, Azure, AlloyDB, Neon, and Supabase
- Public, private, and BYOC deployment options
- PostgreSQL authentication and advanced connector settings
- How to connect to private PostgreSQL databases
- How to discover tables, configure collections, and publish a CDC capture

Video chapters:

00:00 How log-based PostgreSQL CDC works
00:30 PostgreSQL CDC vs. batch connectors
01:08 Data planes and deployment options
01:42 PostgreSQL connection settings and history mode
02:09 Authentication, publications, replication slots, and watermarks
02:36 Connecting to private PostgreSQL databases
03:06 Discover tables, publish capture, and start streaming

Documentation and resources:
PostgreSQL connector docs: https://docs.estuary.dev/reference/Connectors/capture-connectors/PostgreSQL/
PostgreSQL batch connector: https://docs.estuary.dev/reference/Connectors/capture-connectors/PostgreSQL/postgres-batch/
Deployment options: https://docs.estuary.dev/getting-started/deployment-options/
Connecting to private networks (SSH tunneling): https://docs.estuary.dev/guides/connect-network/
PrivateLink: https://docs.estuary.dev/private-byoc/privatelink/
Try Estuary free: https://dashboard.estuary.dev/register

Estuary is a real-time data integration platform that helps teams capture database changes using CDC and deliver data to multiple downstream systems.

#PostgreSQL #ChangeDataCapture #PostgresCDC

More videos

Estuary logo on light background

Seamless Data Integration, Unlimited Potential

Discover the simplest way to connect and move your data.Get hands-on for free, or schedule a demo to see the possibilities for your team.