mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Update description of spilled counters in pg_stat_replication_slots view.
This is to make the description of spilled counters clear. Author: Amit Kapila Reviewed-by: Sawada Masahiko Discussion: https://postgr.es/m/CA+fd4k5_pPAYRTDrO2PbtTOe0eHQpBvuqmCr8ic39uTNmR49Eg@mail.gmail.com
This commit is contained in:
@ -2603,9 +2603,9 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
|
|||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Number of transactions spilled to disk after the memory used by
|
Number of transactions spilled to disk after the memory used by
|
||||||
logical decoding exceeds <literal>logical_decoding_work_mem</literal>. The
|
logical decoding of changes from WAL for this slot exceeds
|
||||||
counter gets incremented both for toplevel transactions and
|
<literal>logical_decoding_work_mem</literal>. The counter gets
|
||||||
subtransactions.
|
incremented both for toplevel transactions and subtransactions.
|
||||||
</para></entry>
|
</para></entry>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
@ -2614,7 +2614,8 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
|
|||||||
<structfield>spill_count</structfield> <type>bigint</type>
|
<structfield>spill_count</structfield> <type>bigint</type>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
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
|
may get spilled repeatedly, and this counter gets incremented on every
|
||||||
such invocation.
|
such invocation.
|
||||||
</para></entry>
|
</para></entry>
|
||||||
@ -2625,7 +2626,10 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
|
|||||||
<structfield>spill_bytes</structfield> <type>bigint</type>
|
<structfield>spill_bytes</structfield> <type>bigint</type>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
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 <literal>logical_decoding_work_mem</literal>.
|
||||||
</para></entry>
|
</para></entry>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user