|
pg_stat_replication_slotspg_stat_replication_slots
One row per replication slot, showing statistics about
- replication slot usage.
+ the replication slot's usage.
See
pg_stat_replication_slots for details.
spill_txns bigint
- Number of transactions spilled to disk after the memory used by
- logical decoding of changes from WAL for this slot exceeds
+ Number of transactions spilled to disk once the memory used by
+ logical decoding to decode changes from WAL has exceeded
logical_decoding_work_mem. The counter gets
- incremented both for toplevel transactions and subtransactions.
+ incremented for both toplevel transactions and subtransactions.
spill_count bigint
- Number of times transactions were spilled to disk while decoding changes
- from WAL for this slot. Transactions may get spilled repeatedly, and
- this counter gets incremented on every such invocation.
+ Number of times transactions were spilled to disk while decoding
+ changes from WAL for this slot. This counter is incremented each time
+ a transaction is spilled, and the same transaction may be spilled
+ multiple times.
stream_txns bigint
- Number of in-progress transactions streamed to the decoding output plugin
- after the memory used by logical decoding of changes from WAL for this
- slot exceeds logical_decoding_work_mem. Streaming only
+ Number of in-progress transactions streamed to the decoding output
+ plugin after the memory used by logical decoding to decode changes
+ from WAL for this slot has exceeded
+ logical_decoding_work_mem. Streaming only
works with toplevel transactions (subtransactions can't be streamed
- independently), so the counter does not get incremented for subtransactions.
+ independently), so the counter is not incremented for subtransactions.
Number of times in-progress transactions were streamed to the decoding
- output plugin while decoding changes from WAL for this slot. Transactions
- may get streamed repeatedly, and this counter gets incremented on every
- such invocation.
+ output plugin while decoding changes from WAL for this slot. This
+ counter is incremented each time a transaction is streamed, and the
+ same transaction may be streamed multiple times.
|
pg_stat_reset_replication_slot
void
- Resets statistics to zero for a single replication slot, or for all
- replication slots in the cluster. The argument can be either the name
- of the slot to reset the stats or NULL. If the argument is NULL, all
- counters shown in the pg_stat_replication_slots
- view for all replication slots are reset.
+ Resets statistics of the replication slot defined by the argument. If
+ the argument is NULL, resets statistics for all
+ the replication slots.
This function is restricted to superusers by default, but other users