• Amit Kapila's avatar
    Track statistics for streaming of changes from ReorderBuffer. · 8e90ec55
    Amit Kapila authored
    This adds the statistics about transactions streamed to the decoding
    output plugin 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.
    
    Commit 98681675 has added the basic infrastructure to capture the stats
    of slot and this commit extends the statistics collector to track
    additional information about slots.
    
    Bump the catversion as we have added new columns in the catalog entry.
    
    Author: Ajin Cherian and Amit Kapila
    Reviewed-by: Sawada Masahiko and Dilip Kumar
    Discussion: https://postgr.es/m/CAA4eK1+chpEomLzgSoky-D31qev19AmECNiEAietPQUGEFhtVA@mail.gmail.com
    8e90ec55
pg_proc.dat 556 KB