Logical decoding
PostgreSQL-feature: omkoda WAL-stream till logiska ändringar (INSERT/UPDATE/DELETE-events) istället för fysiska block-diffs. Driver CDC + logical replication. Plugins: pgoutput (default), wal2json, decoderbufs.
Sedan PostgreSQL 9.4 (2014). Konsumenter: built-in logical replication (PUBLICATION + SUBSCRIPTION), Debezium, AWS DMS. Output-format styrs av plugin. Begränsningar: ingen DDL-replication (table-create måste manuellt syncas), large objects (BYTEA) saknar full-stöd i wal2json. Versions-skift: PG 14 lade till streaming för stora transaktioner. PG 16: bidirectional logical replication. Standard CDC-stack idag: Debezium + Kafka Connect på topp av logical decoding.