pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Track statistics for spilling of changes from ReorderBuffer. 2+ messages / 1 participants [nested] [flat]
* pgsql: Track statistics for spilling of changes from ReorderBuffer. @ 2019-11-21 02:45 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Amit Kapila @ 2019-11-21 02:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9290ad198b15d6b986b855d2a58d087a54777e87 Modified Files -------------- 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Track statistics for spilling of changes from ReorderBuffer. @ 2020-10-08 03:47 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Amit Kapila @ 2020-10-08 03:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_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. This commit extends the statistics collector to track this information about slots. Author: Sawada Masahiko and Amit Kapila Reviewed-by: Amit Kapila and Dilip Kumar Discussion: https://postgr.es/m/CA+fd4k5_pPAYRTDrO2PbtTOe0eHQpBvuqmCr8ic39uTNmR49Eg@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/98681675002d852d926a49d7bc4d4b4856b2fc4a Modified Files -------------- doc/src/sgml/monitoring.sgml | 112 +++++++++ src/backend/catalog/system_views.sql | 10 + src/backend/postmaster/pgstat.c | 320 ++++++++++++++++++++++++ src/backend/replication/logical/decode.c | 9 + src/backend/replication/logical/logical.c | 29 +++ src/backend/replication/logical/reorderbuffer.c | 22 ++ src/backend/replication/slot.c | 25 +- src/backend/utils/adt/pgstatfuncs.c | 80 ++++++ src/include/catalog/catversion.h | 2 +- src/include/catalog/pg_proc.dat | 12 + src/include/pgstat.h | 52 +++- src/include/replication/logical.h | 1 + src/include/replication/reorderbuffer.h | 24 +- src/include/replication/slot.h | 1 + src/test/regress/expected/rules.out | 6 + src/tools/pgindent/typedefs.list | 3 + 16 files changed, 700 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-10-08 03:47 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-11-21 02:45 pgsql: Track statistics for spilling of changes from ReorderBuffer. Amit Kapila <akapila@postgresql.org> 2020-10-08 03:47 pgsql: Track statistics for spilling of changes from ReorderBuffer. Amit Kapila <akapila@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox