pgsql: Add stats_reset column to pg_statio_all_sequences - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Add stats_reset column to pg_statio_all_sequences
Date
Msg-id E1w23GK-000POj-1v@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add stats_reset column to pg_statio_all_sequences

pg_statio_all_sequences lacked a stats_reset column, unlike the other
pg_statio_* views that already expose it. This commit adds the column so
users can see when the statistics in this view were last reset.

Also this commit updates the documentation for
pg_stat_reset_single_table_counters() to clarify that it can reset statistics
for sequences and materialized views as well.

Catalog version bumped.

Author: Sami Imseih <samimseih@gmail.com>
Co-authored-by: Shihao Zhong <zhong950419@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAA5RZ0v0OPGyDpwxkX81CtTt9xsj9-TNxhm=8JdOvEKPsVVFNg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8fe315f18d4181d37385c8e62ea3009084ba303a

Modified Files
--------------
doc/src/sgml/monitoring.sgml         | 11 +++++++++++
src/backend/catalog/system_views.sql |  3 ++-
src/include/catalog/catversion.h     |  2 +-
src/test/regress/expected/rules.out  |  9 ++++++---
src/test/regress/expected/stats.out  | 33 +++++++++++++++++++++++++++++++++
src/test/regress/sql/stats.sql       | 15 +++++++++++++++
6 files changed, 68 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Fix accidentally casting away const
Next
From: Michael Paquier
Date:
Subject: pgsql: Reject ALTER TABLE .. CLUSTER earlier for partitioned tables