logical-decoding · shipping · also PostgreSQL logical decoding

Logical decoding

Logical decoding reconstructs database changes from a storage-level log into a representation that a consumer can interpret without the database's physical storage format.

Related Observatory article: Logical decoding on hesela.com

PostgreSQL uses output plugins to translate WAL into change streams. A logical slot serves one database and has its own progress state. [1] A disconnected slot can retain system-catalog row versions needed for decoding, so monitoring only retained WAL misses part of its resource footprint. [1]

Relations

related
replication-slot, write-ahead-log, log-sequence-number, idempotency

Limitations

Citations

  1. PostgreSQL 18: logical decoding concepts and crash replay (accessed 2026-10-16)
  2. Hesela: Replication acknowledgements, retention and decoding (accessed 2026-10-16)

JSON: /data/terms/logical-decoding.json