Track statistics for spilling of changes from ReorderBuffer.
authorAmit Kapila <akapila@postgresql.org>
Sat, 16 Nov 2019 12:54:00 +0000 (18:24 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 21 Nov 2019 02:36:51 +0000 (08:06 +0530)
commit9290ad198b15d6b986b855d2a58d087a54777e87
tree1758f43591a31c8b469434b8079b373872aae078
parent168d2064001f704965899bb2057591271c44e57a
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 view to check
these stats.

Author: Tomas Vondra, with bug-fixes and minor changes by Dilip Kumar
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/688b0b7f-2f6c-d827-c27b-216a8e3ea700@2ndquadrant.com
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/replication/logical/reorderbuffer.c
src/backend/replication/walsender.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/replication/reorderbuffer.h
src/include/replication/walsender_private.h
src/test/regress/expected/rules.out