Description
pgcapture is a scalable implementation of Netflix's DBLog approach for PostgreSQL. It captures changes from a Postgres database, including DDL commands, and streams them to consumers through one unified gRPC streaming API that also serves on-demand dumps of table data. Changes and dumps are sent in the Postgres binary representation to save bandwidth. The project lists several improvements over the original design. Dumps are read from logical replicas rather than the source database, and they are injected into the selected downstreams by a gRPC gateway service. That means the on-demand dump process can scale by adding more logical replicas and consumers, and dumps do not put load on the source database or on consumers that do not need them. Primary keys do not have to be a single numeric column, because dumps use PostgreSQL TID scans. Use cases include robust event queueing for microservices, data synchronization and moving data to other databases such as OLAP stores, and upgrading PostgreSQL with minimal downtime. It works with the pgoutput and pglogical_output decode plugins, and the README explains the extra setup pglogical_output needs. The project is on GitHub.…
Highlights
- Captures DDL commands and row changes
- Unified gRPC streaming API
- On-demand table dumps from logical replicas
- Binary representation to save bandwidth
- Works with pgoutput and pglogical_output
Ratings & Reviews
No ratings yet
Be the first to rate Pgcapture.
People also visit
PG Easy Replicate
Easily setup logical replication and switchover to new database
Databasus
PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
Pgmetrics
Collect and display information and stats from a running PostgreSQL server
Pgcapture FAQ
What is pgcapture?
A change data capture tool for PostgreSQL, based on Netflix's DBLog approach.
Does it load the source database?
No. The README says dumps are read from logical replicas and injected by a gRPC gateway, so the source database is not queried for them.
What are its use cases?
Microservice event queueing, data synchronization to other databases such as OLAP stores, and PostgreSQL upgrades with minimal downtime.
Which decode plugins does it support?
pgoutput and pglogical_output. For pglogical_output, the README says pglogical must be installed and the local node created manually.
Does it capture schema changes?
Yes. The README says DDL commands are captured as well.
What are the best Pgcapture alternatives?
Popular alternatives to Pgcapture include PG-Capture, PG Easy Replicate and Sequin. See all Pgcapture alternatives






