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: Chao Li <li.evan.chao@gmail.com>
Cc: Sami Imseih <samimseih@gmail.com>, shihao zhong <zhong950419@gmail.com>, Kirill Reshke <reshkekirill@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-04-06T04:22:34Z
Lists: pgsql-hackers
On Mon, Mar 16, 2026 at 11:11 AM Chao Li <li.evan.chao@gmail.com> wrote:
> I searched through the test scripts, and it looks like only stats.sql uses this pattern. So I attached a small patch that replaces all (SELECT current_database()) with current_database().

OK, I've pushed the patch. Thanks!

Regards,

-- 
Fujii Masao



Commits

  1. Simplify redundant current_database() subqueries in stats.sql regression test

  2. Add stats_reset column to pg_stat_database_conflicts.