Track statistics for spilling of changes from ReorderBuffer

Enterprise / PostgreSQL - Amit Kapila [postgresql.org] - 21 November 2019 02:36 EST

This adds the statistics about transactions spilled to disk from ReorderBuffer. Users can query the pg_stat_replication view to check these stats.

Author: Tomas Vondra, with bug-fixes and minor changes by Dilip Kumar

9290ad198b Track statistics for spilling of changes from ReorderBuffer.
doc/src/sgml/monitoring.sgml | 20 ++++++++++++
src/backend/catalog/system_views.sql | 5 ++-
src/backend/replication/logical/reorderbuffer.c | 12 +++++++
src/backend/replication/walsender.c | 42 +++++++++++++++++++++++--
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 6 ++--
src/include/replication/reorderbuffer.h | 11 +++++++
src/include/replication/walsender_private.h | 5 +++
src/test/regress/expected/rules.out | 7 +++--
9 files changed, 101 insertions(+), 9 deletions(-)

Upstream: git.postgresql.org


  • Share