pgstream

Real-time change data capture for Postgres

Repository Documentation Apache-2.0

About

pgstream listens to your Postgres WAL and emits structured change events over WebSocket or NATS. Zero polling, sub-millisecond latency, and it handles schema changes gracefully. Built in Rust, runs as a single binary.

Features

Logical replication with automatic slot management, WebSocket and NATS output adapters, Schema migration tracking, Exactly-once delivery guarantees, Prometheus metrics built in

Installation

curl -sSL https://example.com/install.sh | sh, pgstream init --db postgres://localhost/mydb, pgstream start