Track statistics for spilling of changes from ReorderBuffer.

Amit Kapila <akapila@postgresql.org>

Commit: 98681675002d852d926a49d7bc4d4b4856b2fc4a
Author: Amit Kapila <akapila@postgresql.org>
Date: 2020-10-08T03:39:08Z
Releases: 14.0
Track statistics for spilling of changes from ReorderBuffer.

This adds the statistics about transactions spilled to disk from
ReorderBuffer. Users can query the pg_stat_replication_slots view to check
these stats and call pg_stat_reset_replication_slot to reset the stats of
a particular slot. Users can pass NULL in pg_stat_reset_replication_slot
to reset stats of all the slots.

This commit extends the statistics collector to track this information
about slots.

Author: Sawada Masahiko and Amit Kapila
Reviewed-by: Amit Kapila and Dilip Kumar
Discussion: https://postgr.es/m/CA+fd4k5_pPAYRTDrO2PbtTOe0eHQpBvuqmCr8ic39uTNmR49Eg@mail.gmail.com

Files

Documentation touched

Discussion