pgsql: Fix test case added by commit f5fc2f5b23. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Fix test case added by commit f5fc2f5b23.
Date
Msg-id E1lYKor-0006Uc-Iu@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix test case added by commit f5fc2f5b23.

In the new test after resetting the stats, we were not waiting for the
stats message to be delivered. Also, we need to decode the results for
the new test, otherwise, it will show the old stats.

In passing,
a. Change docs added by commit f5fc2f5b23 as per suggestion by
Justin Pryzby.
b. Bump the PGSTAT_FILE_FORMAT_ID as commit f5fc2f5b23 changes the file
format of stats.

Reported-by: Tom Lane based on buildfarm reports
Author: Vignesh C, Justin Pryzby
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/20210319185247.ldebgpdaxsowiflw@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c64dcc7fee5f8a7941a4fd098a969de1f457cc79

Modified Files
--------------
contrib/test_decoding/expected/stats.out | 57 +++++++++++++++++++++-----------
contrib/test_decoding/sql/stats.sql      | 18 ++++++----
doc/src/sgml/monitoring.sgml             | 10 +++---
src/include/pgstat.h                     |  2 +-
4 files changed, 55 insertions(+), 32 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix typos and grammar in comments and docs
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Use correct format placeholder for pids