• Andres Freund's avatar
    Add the capability to display summary statistics to pg_xlogdump. · bdd5726c
    Andres Freund authored
    The new --stats/--stats=record options to pg_xlogdump display per
    rmgr/per record statistics about the parsed WAL. This is useful to
    understand what the WAL primarily consists of, to allow targeted
    optimizations on application, configuration, and core code level.
    
    It is likely that we will want to fine tune the statistics further,
    but the feature already is quite helpful.
    
    Author: Abhijit Menon-Sen, slightly editorialized by me
    Reviewed-By: Andres Freund, Dilip Kumar and Furuya Osamu
    Discussion: 20140604104716.GA3989@toroid.org
    bdd5726c
pg_xlogdump.c 23.8 KB