Simplify redundant current_database() subqueries in stats.sql regression test
Fujii Masao <fujii@postgresql.org>
Simplify redundant current_database() subqueries in stats.sql regression test Previously the stats.sql regression test used conditions like "datname = (SELECT current_database())" to check the current database name. The subquery is unnecessary, so this commit simplifies these expressions to "datname = current_database()". Author: Chao Li <lic@highgo.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/A1535A8F-65AF-4C3D-ACBE-25891CB5D38B@gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/stats.out | modified | +6 −6 |
| src/test/regress/sql/stats.sql | modified | +6 −6 |
Discussion
- Add missing stats_reset column to pg_stat_database_conflicts view 17 messages · 2026-03-09 → 2026-04-07