Re: Add missing stats_reset column to pg_stat_database_conflicts view
Fujii Masao <masao.fujii@gmail.com>
From: Fujii Masao <masao.fujii@gmail.com>
To: Sami Imseih <samimseih@gmail.com>
Cc: shihao zhong <zhong950419@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-03-10T01:17:08Z
Lists: pgsql-hackers
On Tue, Mar 10, 2026 at 8:33 AM Sami Imseih <samimseih@gmail.com> wrote: > > > The attached patch adds pg_stat_get_db_stat_reset_time() to fix this > > inconsistency. > > > > Please let me know your thoughts. > > This view was introduced 15 years ago, and surprisingly this is the > first complaint about this. I am also not very surprised. > > I also noticed that pg_statio_all_sequences does not have a reset > column. We should fix this one also. What do you think? +1 Also it might be better to update the docs together so that the description of pg_stat_reset_single_table_counters mentions sequences in addition to tables and indexes. Regards, -- Fujii Masao
Commits
-
Simplify redundant current_database() subqueries in stats.sql regression test
- d78a4f0bf058 19 (unreleased) landed
-
Add stats_reset column to pg_stat_database_conflicts.
- 723619eaa3a8 19 (unreleased) landed