test_decoding
SQL-based test/example module for WAL logical decoding
test_decoding : SQL-based test/example module for WAL logical decoding
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9970 | test_decoding | test_decoding | - |
ETL | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s---- | No | Yes | No | No | no | no |
| Relationships | |
|---|---|
| See Also | wal2json decoderbufs pgoutput wal2mongo decoder_raw pg_walinspect pg_logicalinspect kafka_fdw pgmqtt pgq |
Packages
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| - | - | - | - | - |
This is a built-in contrib extension ship with the PostgreSQL kernel
Install
This extension does not need CREATE EXTENSION DDL command
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)