~/talk

Hazards of logical decoding in PostgreSQL

Talkat POSETTE: An Event for Postgres 2024 · 2024-06-11..06-13· [databases]
linkedin:hughcapet
slides:none on file

Explains why logical decoding can blow up disk and CPU: every slot spawns a WalSender that decodes the shared pg_wal stream single‑threaded, uses work_mem and a reorder buffer that spills to disk, and stalled persistent replication slots keep restart_lsn and catalog_xmin from advancing so pg_wal grows. Shows a pg_repack example that writes massive WAL for a temp table that is then filtered away, cites pg_stat_replication_slots and confirmed_flush_lsn for monitoring, warns about Patroni slot re‑creation, and notes a pgJDBC bug that stalled shutdown and hit Debezium.

AI-written summary · about

  1. 0:00Intro
  2. 2:01Logical decoding
  3. 2:59Decoding process
  4. 9:44Logical decoding slot
  5. 17:46Replication protocol
  6. 21:00Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.