Number of transactions spilled to disk after the memory used by
- logical decoding exceeds logical_decoding_work_mem. The
- counter gets incremented both for toplevel transactions and
- subtransactions.
+ logical decoding of changes from WAL for this slot exceeds
+ logical_decoding_work_mem. The counter gets
+ incremented both for toplevel transactions and subtransactions.
spill_count bigint
- Number of times transactions were spilled to disk. Transactions
+ Number of times transactions were spilled to disk while performing
+ decoding of changes from WAL for this slot. Transactions
may get spilled repeatedly, and this counter gets incremented on every
such invocation.
spill_bytes bigint
- Amount of decoded transaction data spilled to disk.
+ Amount of decoded transaction data spilled to disk while performing
+ decoding of changes from WAL for this slot. This and other spill
+ counters can be used to gauge the I/O occurred during logical decoding
+ and accordingly can tune logical_decoding_work_mem.