test_decoding
SQL-based test/example module for WAL logical decoding
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
test_decoding | - | ETL | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 9970 | test_decoding | No | Yes | No | No | No | No | - |
| Related | wal2json decoderbufs pgoutput wal2mongo decoder_raw pg_walinspect pg_logicalinspect kafka_fdw pgmqtt pgq |
|---|
Version
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| - | - | - | - | - |
Install
Note: This is a built-in contrib extension of PostgreSQL
Usage
test_decoding: SQL-based test/example module for WAL logical decoding
A built-in PostgreSQL logical decoding output plugin that produces text representations of WAL changes. Primarily used for testing and as a reference implementation.
Configuration
In postgresql.conf:
Using with SQL Functions
Output Format
Using with pg_recvlogical
Options
Pass options as key-value pairs:
include-xids- include transaction IDs in outputskip-empty-xacts- skip transactions with no changesinclude-timestamp- include commit timestamps
Notes
- Ships with PostgreSQL (contrib module, no separate installation needed)
- Intended for testing and debugging logical decoding
- For production CDC, use purpose-built plugins (wal2json, pgoutput, decoderbufs)
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)