Description
pg_easy_replicate is an open-source command-line tool that sets up logical replication between two PostgreSQL databases and can switch an application over to the new one. Once the source database is fully replicated, it puts the source into read-only mode and flushes the remaining data to the target through logical replication, which the author says avoids data loss and keeps downtime to a minimum. That makes it useful for moving to a new Postgres server, version or provider. Beyond setup and switchover, the CLI reports replication lag and other stats for a replication group, lists DDL changes captured on the source, and can apply those schema changes to the target after asking for confirmation. Output is structured JSON logs.…
Highlights
- Sets up logical replication between two Postgres databases
- Switchover with source put into read-only mode
- Replication lag and status stats
- Tracks DDL changes on the source
- Applies pending DDL changes with confirmation
Ratings & Reviews
No ratings yet
Be the first to rate PG Easy Replicate.
People also visit
PG Easy Replicate FAQ
What does pg_easy_replicate do?
It orchestrates logical replication between a source and target PostgreSQL database and can perform a switchover to the target with minimal downtime.
How does switchover avoid data loss?
After the target is fully caught up, the tool makes the source read-only and flushes the remaining changes through logical replication before switching.
Can I monitor replication progress?
Yes. The stats command reports lag figures such as write, flush and replay lag for a replication group.
What about schema changes during replication?
The list_ddl_changes command shows DDL captured on the source, and apply_ddl_change applies it to the target after you confirm.
What are the best PG Easy Replicate alternatives?
Popular alternatives to PG Easy Replicate include Pgcapture, Databasus and Oddk. See all PG Easy Replicate alternatives






