---
title: "Deploy pg_easy_replicate"
description: "Set up logical replication between two PostgreSQL databases."
category: "Storage"
url: https://railway.com/deploy/MfqQcU
---

# Deploy pg_easy_replicate

Set up logical replication between two PostgreSQL databases.

**[Deploy pg_easy_replicate on Railway](https://railway.com/template/MfqQcU)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/MfqQcU/manifest.json

- **Creator:** Ray Chen
- **Category:** Storage
- **Total deploys:** 23

## Template content

### pg_easy_replicate

- **Image:** shayonj/pg_easy_replicate:latest

## Documentation

This templates deploys [`pg_easy_replicate`](https://github.com/shayonj/pg_easy_replicate) on Railway.

`pg_easy_replicate` is a CLI orchestrator tool that simplifies the process of setting up [logical replication](https://www.postgresql.org/docs/current/logical-replication.html) between two PostgreSQL databases. `pg_easy_replicate` also supports switchover. After the source (primary database) is fully replicated, `pg_easy_replicate` puts it into read-only mode and via logical replication flushes all data to the new target database. This ensures zero data loss and minimal downtime for the application. This method can be useful for performing minimal downtime (up to &lt;1min, depending) major version upgrades between a Blue/Green PostgreSQL database setup, load testing and other similar use cases.

Learn more at https://github.com/shayonj/pg_easy_replicate.

## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Neo4j 2026.10 Community](https://railway.com/deploy/neo4j-202610-community) — Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

Open this page in a browser: https://railway.com/deploy/MfqQcU
