pgsql: Add test case showing that commit d0d44049d fixed a live bug. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Add test case showing that commit d0d44049d fixed a live bug.
Date
Msg-id E1s8OlI-000plh-Rg@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add test case showing that commit d0d44049d fixed a live bug.

When I committed d0d44049d (Account for optimized MinMax aggregates
during SS_finalize_plan), I didn't have a test case showing that it
was fixing any reachable bug.  Here is one, based on bug #18465 from
Hal Takahara.  Without the fix, all rows of the result show the same
"min" value, because the aggregate doesn't get recalculated.

Committed despite beta1 release freeze, with the concurrence of
pgsql-release.

Discussion: https://postgr.es/m/18465-2fae927718976b22@postgresql.org
Discussion: https://postgr.es/m/2391880.1689025003@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/779ac2c74bd15744aa92b588f70606a1a95256d2

Modified Files
--------------
src/test/regress/expected/aggregates.out | 31 +++++++++++++++++++++++++++++++
src/test/regress/sql/aggregates.sql      | 10 ++++++++++
2 files changed, 41 insertions(+)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: doc PG 17 relnotes: add incremental JSON parser item
Next
From: Tom Lane
Date:
Subject: pgsql: Account for optimized MinMax aggregates during SS_finalize_plan.