jsoncdc
jsoncdc · JSON logical decoding output plugin
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100073 | jsoncdc | jsoncdc | 0.1.0 | ETL | Apache-2.0 | Rust |
Usage
Sources:
jsoncdc version 0.1.0 is a logical-decoding output plug-in that translates PostgreSQL WAL changes into newline-delimited JSON. It is loaded by a logical replication slot; it does not require CREATE EXTENSION and installs no SQL API.
Core Workflow
Configure logical decoding first: wal_level must be logical, and max_replication_slots must leave capacity for the slot. Then connect to the database with privileges to create and consume a logical slot.
The stream emits a begin object, table schema/name records, insert/update/delete records, optional logical-message records, and a commit object with transaction ID and timestamp. Each JSON object occupies one output line.
Replication-Slot Operations
Logical slots persist independently of consumers and retain required WAL and catalog rows. Monitor lag, make consumers tolerant of replay after a crash, and drop a slot when it is no longer needed.
Compatibility Boundary
The upstream code is an old Rust output plug-in, last documented for version 0.1.0. Verify that it builds against the exact PostgreSQL server before adoption. DDL is not a row-change stream, and clients must parse the plug-in’s documented record sequence rather than assuming one self-contained JSON document per transaction.