pgsql: Simplify redundant current_database() subqueries in stats.sql re - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Simplify redundant current_database() subqueries in stats.sql re
Date
Msg-id E1w9bT5-003BGW-11@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d78a4f0bf058906c5cfd25c815ccbdf18013b312

Modified Files
--------------
src/test/regress/expected/stats.out | 12 ++++++------
src/test/regress/sql/stats.sql      | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)


pgsql-committers by date:

Previous
From: Richard Guo
Date:
Subject: pgsql: Fix collation handling for grouping keys in eager aggregation
Next
From: Michael Paquier
Date:
Subject: pgsql: Improve more stability of worker_spi termination test