@@ -2603,9 +2603,9 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
2603
2603
</para>
2604
2604
<para>
2605
2605
Number of transactions spilled to disk after the memory used by
2606
- logical decoding exceeds <literal>logical_decoding_work_mem</literal>. The
2607
- counter gets incremented both for toplevel transactions and
2608
- subtransactions.
2606
+ logical decoding of changes from WAL for this slot exceeds
2607
+ <literal>logical_decoding_work_mem</literal>. The counter gets
2608
+ incremented both for toplevel transactions and subtransactions.
2609
2609
</para></entry>
2610
2610
</row>
2611
2611
@@ -2614,7 +2614,8 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
2614
2614
<structfield>spill_count</structfield> <type>bigint</type>
2615
2615
</para>
2616
2616
<para>
2617
- Number of times transactions were spilled to disk. Transactions
2617
+ Number of times transactions were spilled to disk while performing
2618
+ decoding of changes from WAL for this slot. Transactions
2618
2619
may get spilled repeatedly, and this counter gets incremented on every
2619
2620
such invocation.
2620
2621
</para></entry>
@@ -2625,7 +2626,10 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
2625
2626
<structfield>spill_bytes</structfield> <type>bigint</type>
2626
2627
</para>
2627
2628
<para>
2628
- Amount of decoded transaction data spilled to disk.
2629
+ Amount of decoded transaction data spilled to disk while performing
2630
+ decoding of changes from WAL for this slot. This and other spill
2631
+ counters can be used to gauge the I/O occurred during logical decoding
2632
+ and accordingly can tune <literal>logical_decoding_work_mem</literal>.
2629
2633
</para></entry>
2630
2634
</row>
2631
2635
0 commit comments