wal2json
Changing data capture in JSON format
Repository
eulerto/wal2json
https://github.com/eulerto/wal2json
Source
wal2json-2.6.tar.gz
wal2json-2.6.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
wal2json | 2.6 | ETL | BSD-3-Clause | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 9630 | wal2json | No | Yes | No | No | No | No | - |
| Related | decoderbufs pgoutput test_decoding pgmqtt pgq kafka_fdw wal2mongo decoder_raw pg_walinspect pg_logicalinspect |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 2.6 | 1817161514 | wal2json | - |
| RPM | PGDG | 2.6 | 1817161514 | wal2json_$v | - |
| DEB | PGDG | 2.6 | 1817161514 | postgresql-$v-wal2json | - |
Install
You can install wal2json directly. First, make sure the PGDG repository is added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
This extension does not require
CREATE EXTENSION
Usage
A logical decoding output plugin that produces JSON-formatted change data capture from the PostgreSQL WAL.
Configuration
In postgresql.conf:
Using with Streaming Protocol (pg_recvlogical)
Using with SQL Functions
Output Format v1 (JSON per transaction)
Output Format v2 (JSON per tuple)
Enable with: 'format-version', '2'
Key Parameters
include-xids- add transaction ID (default: false)include-timestamp- add timestamp (default: false)include-schemas- add schema name (default: true)include-types- add column types (default: true)include-pk- add primary key info (default: false)include-lsn- add WAL LSN (default: false)include-not-null- add NOT NULL info (default: false)include-default- add default expressions (default: false)pretty-print- format JSON output (default: false)filter-tables- comma-separated list of tables to includeadd-tables- same as filter-tablesfilter-msg-prefixes- filter logical messages by prefixformat-version- 1 (per-transaction) or 2 (per-tuple)actions- filter by action type: insert, update, delete, truncate
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)