decoderbufs
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
decoderbufs | 3.6.0 | ETL | MIT | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 9650 | decoderbufs | No | Yes | Yes | No | No | No | - |
| Related | wal2json decoder_raw pgoutput pgmqtt pg_protobuf pgq kafka_fdw test_decoding wal2mongo pgproto |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 3.6.0 | 1817161514 | decoderbufs | - |
| RPM | PGDG | 3.5.0 | 1817161514 | postgres-decoderbufs_$v | - |
| DEB | PGDG | 3.6.0 | 1817161514 | postgresql-$v-decoderbufs | - |
Install
You can install decoderbufs directly. First, make sure the PGDG repository is added and enabled:
Install the extension using pig or apt/yum/dnf:
Preload:
Usage
Sources:
decoderbufs is a headless PostgreSQL logical-decoding output plugin used by the Debezium PostgreSQL connector. It turns WAL changes into Protocol Buffers messages; it does not create a user SQL schema and does not require CREATE EXTENSION.
Configure PostgreSQL
Enable the plugin and logical replication in postgresql.conf, size the sender and slot limits for the expected consumers, then restart PostgreSQL:
The replication login also needs the REPLICATION attribute and a matching pg_hba.conf rule. Use authentication appropriate for the network rather than the README’s local demonstration settings.
Core Workflow
Create a logical slot whose output plugin is decoderbufs:
For inspection in psql, ask the plugin for debug text:
peek leaves the confirmed position unchanged; get advances it. Normal Debezium operation consumes the binary messages defined by pg_logicaldec.proto rather than enabling debug mode.
Important Objects and Boundaries
decoderbufsis the logical-decoding output-plugin name passed when a slot is created.debug-mode = 1provides human-readable output for troubleshooting only.- The Protobuf message carries transaction metadata, relation and column information, operation kind, old keys, and typed values.
- Tables that must emit sufficient data for
UPDATEandDELETErequire an appropriateREPLICA IDENTITY.
Logical slots retain WAL until a consumer confirms progress. Monitor pg_replication_slots and remove abandoned slots deliberately to prevent disk exhaustion. Schema changes, replica identity, unsupported data-type mappings, and large transactions should be tested with the matching Debezium connector version.
The upstream build requires PostgreSQL 9.6 or newer and protobuf-c; PostGIS support is compiled when available. The package release moves with Debezium to 3.6.0.Final, while the plugin control metadata remains SQL version 0.1.0 because this is an output plugin rather than a migration-based SQL extension.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)