pg_broker
pg_broker · Durable partitioned event log with an external Kafka protocol gateway.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102321 | pg_broker | pg_broker | 0.1.1 | FEAT | Apache-2.0 | Rust |
PostgreSQL · 17
Usage
Sources:
pg_broker SQL version 0.1.1 supplies a durable partitioned event log behind a separate Kafka protocol gateway.
Core Workflow
Deploy matching gateway, binary and SQL artifacts. The gateway calls public.broker_call(jsonb) to create topics, append/fetch records and manage group offsets. The broker schema stores retained records and coordinator state; consuming a record does not delete it.
Operational Boundaries
The supported build targets PostgreSQL 17 and requires privileged installation. Grant the gateway only its documented entry-point privileges. Successful produce acknowledgments follow a PostgreSQL commit, not a Kafka replica acknowledgment. This MVP has a limited Kafka API, no authentication/TLS, idempotent producer or Kafka transaction guarantee. Retention can remove data needed by lagging groups; monitor it separately.