pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add stats_reset column to pg_stat_database_conflicts.
Date: Fri, 13 Mar 2026 13:19:30 +0000
Message-ID: <E1w12QM-003lt6-16@gemulon.postgresql.org> (raw)

Add stats_reset column to pg_stat_database_conflicts.

This commit adds a stats_reset column to pg_stat_database_conflicts,
allowing users to see when the statistics in this view were last reset.
This makes the view consistent with pg_stat_database and other statistics
views.

Catalog version bumped.

Author: Shihao Zhong <zhong950419@gmail.com>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAGRkXqS98OebEWjax99_LVAECsxCB8i=BfsdAL34i-5QHfwyOQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/723619eaa3a85f32ce8c2d32c063da26f89ca8d2

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



Message-ID: <E1w12QM-003lt6-16@gemulon.postgresql.org>
Permalink:  ../E1w12QM-003lt6-16@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w12QM-003lt6-16@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add stats_reset column to pg_stat_database_conflicts.
  In-Reply-To: <E1w12QM-003lt6-16@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