Pg_replicatelogical

Replicate DBs using Postgres' built-in test_decoder logical replication plugin.
Alternatives To Pg_replicatelogical
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Awesome Postgres8,928
a month ago72cc0-1.0
A curated list of awesome PostgreSQL software, libraries, tools and resources, inspired by awesome-mysql
Realtime6,113
a day ago2May 01, 202135apache-2.0Elixir
Broadcast, Presence, and Postgres Changes via WebSockets
Patroni5,738
1a day ago67August 03, 202357mitPython
A template for PostgreSQL High Availability with Etcd, Consul, ZooKeeper, or Kubernetes
Wal E3,327
142 years ago33February 04, 202091bsd-3-clausePython
Continuous Archiving for Postgres
Lealone2,299
8 days ago4March 14, 202316otherJava
比 MySQL 快10倍的 OLTP 数据库
Cloudnative Pg1,822
18 hours ago61July 27, 2023164apache-2.0Go
CloudNativePG is a Kubernetes operator that covers the full lifecycle of a PostgreSQL database cluster with a primary/standby architecture, using native streaming replication
Repmgr1,415
3 months ago133otherC
A lightweight replication manager for PostgreSQL (Postgres)
Wal2json1,108
4 months ago1March 03, 202122bsd-3-clauseC
JSON output plugin for changeset extraction
Postgres1,081
a day ago40postgresqlShell
Unmodified Postgres with some useful plugins
Docker Postgresql1,008
3 months ago48mitShell
Dockerfile to build a PostgreSQL container image which can be linked to other containers.
Alternatives To Pg_replicatelogical
Select To Compare


Alternative Project Comparisons
Readme

pg_replicatelogical

Replicate some or all of a Postgres database using logical replication and the built-in test_decoder.

Install

pg_replicatelogical is a command line tool. To install, run:

go install github.com/nickelser/pg_replicatelogical

This will give you the pg_replicatelogical command, assuming your Go paths are setup correctly.

Usage

pg_replicatelogical --source=postgres://user:[email protected]/sourcedb --target=postgres://user:[email protected]/targetdb --create --slot=users_events_slot_1 # run --create only once, per slot you need!
pg_replicatelogical --source=postgres://user:[email protected]/sourcedb --target=postgres://user:[email protected]/targetdb --tables=public.users,public.events --slot=users_events_slot_1

TODO: more examples! use pg_replicatelogical --help for the full help text.

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

Popular Replication Projects
Popular Postgresql Projects
Popular Data Storage Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Golang
Database
Postgresql
Decoder
Replication