pgsql: Add the capability to display summary statistics to pg_xlogdump. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Add the capability to display summary statistics to pg_xlogdump.
Date
Msg-id E1XUzV2-0002mp-JI@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add the capability to display summary statistics to pg_xlogdump.

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bdd5726c347016ea34e9fb68d1b8b71046e25d2e

Modified Files
--------------
contrib/pg_xlogdump/pg_xlogdump.c |  237 +++++++++++++++++++++++++++++++++++--
doc/src/sgml/pg_xlogdump.sgml     |   12 ++
2 files changed, 237 insertions(+), 12 deletions(-)


pgsql-committers by date:

Previous
From: Abhijit Menon-Sen
Date:
Subject: Re: pgsql: Add #define INT64_MODIFIER for the printf length modifier for 64
Next
From: Andres Freund
Date:
Subject: pgsql: Add rmgr callback to name xlog record types for display purposes