pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pgstat: add/extend tests for resetting various kinds of stats.
Date: Thu, 07 Apr 2022 22:53:07 +0000
Message-ID: <E1ncazy-000nql-Sq@gemulon.postgresql.org> (raw)

pgstat: add/extend tests for resetting various kinds of stats.

- subscriber stats reset path was untested
- slot stat sreset path for all slots was untested
- pg_stat_database.sessions etc was untested
- pg_stat_reset_shared() was untested, for any kind of shared stats
- pg_stat_reset() was untested

Author: Melanie Plageman <melanieplageman@gmail.com>
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5264add7847871d61d36a5770dac2139d6a7bc80

Modified Files
--------------
contrib/test_decoding/expected/stats.out    | 117 +++++++---
contrib/test_decoding/sql/stats.sql         |  32 ++-
src/test/recovery/t/006_logical_decoding.pl |  63 ++++++
src/test/regress/expected/stats.out         | 164 ++++++++++++++
src/test/regress/parallel_schedule          |   3 +
src/test/regress/sql/stats.sql              |  78 +++++++
src/test/subscription/t/026_stats.pl        | 318 +++++++++++++++++++++-------
7 files changed, 664 insertions(+), 111 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1ncazy-000nql-Sq@gemulon.postgresql.org>
Permalink:  ../E1ncazy-000nql-Sq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ncazy-000nql-Sq@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: pgstat: add/extend tests for resetting various kinds of stats.
  In-Reply-To: <E1ncazy-000nql-Sq@gemulon.postgresql.org>
  References: <E1ncazy-000nql-Sq@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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