decoder_raw
Output plugin for logical replication in Raw SQL format
Repository
main/decoder_raw
https://github.com/michaelpq/pg_plugins/blob/main/decoder_raw/
Source
decoder_raw-1.0.tar.gz
decoder_raw-1.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
decoder_raw | 1.0 | ETL | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 9660 | decoder_raw | No | Yes | No | No | No | No | - |
| Related | wal2json decoderbufs test_decoding pgoutput wal2mongo pgmqtt kafka_fdw pgq pg_protobuf pgproto |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0 | 1817161514 | decoder_raw | - |
| RPM | PIGSTY | 1.0 | 1817161514 | decoder_raw_$v | - |
| DEB | PIGSTY | 1.0 | 1817161514 | postgresql-$v-decoder-raw | - |
Build
You can build the RPM / DEB packages for decoder_raw using pig build:
Install
You can install decoder_raw directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
This extension does not require
CREATE EXTENSION
Usage
decoder_raw: Output plugin for logical replication in Raw SQL format
A logical decoding output plugin that converts WAL changes into raw SQL statements. Part of the pg_plugins collection by Michael Paquier.
Configuration
In postgresql.conf:
Using with SQL Functions
Using with pg_recvlogical
Key Features
- Outputs changes as executable SQL statements (INSERT, UPDATE, DELETE)
- Useful for debugging logical decoding or replaying changes on another database
- Tables should have REPLICA IDENTITY set for proper UPDATE/DELETE output
- Lightweight plugin designed as a template for custom logical decoding plugins
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)