Skip to content

feat(replication): Add support for read replica replication#777

Merged
iambriccardo merged 14 commits into
mainfrom
add-read-replica-support
Jun 1, 2026
Merged

feat(replication): Add support for read replica replication#777
iambriccardo merged 14 commits into
mainfrom
add-read-replica-support

Conversation

@iambriccardo

@iambriccardo iambriccardo commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds support for running ETL logical replication from a PostgreSQL physical read replica.

This includes:

  • optional store_pg_connection config so replication/table copy can read from a standby while PostgresStore writes state to a writable endpoint
  • source migration startup that skips migration execution when the configured source is in recovery
  • local Docker Compose read-replica setup using pg_basebackup and a physical replication slot
  • xtask/nextest sharding updates to start and pass matching primary/replica ports
  • read-replica integration tests covering replica replay, initial copy + CDC, and idle slot advancement
  • docs for configuring Postgres read replicas and PostgreSQL 16+ requirements

@coveralls

coveralls commented May 28, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 72.965% (-0.001%) from 72.966% — add-read-replica-support into main

@iambriccardo
iambriccardo marked this pull request as ready for review June 1, 2026 07:14
@iambriccardo
iambriccardo requested a review from a team as a code owner June 1, 2026 07:14
@iambriccardo
iambriccardo merged commit 07d492c into main Jun 1, 2026
18 checks passed
@iambriccardo
iambriccardo deleted the add-read-replica-support branch June 1, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants