May 2024

2 commits
Account for optimized MinMax aggregates during SS_finalize_plan.
18 May 2024Tom LaneREL_16_STABLE16.4REL_15_STABLE15.8REL_14_STABLE14.13REL_13_STABLE13.16REL_12_STABLE12.20Also in: Allowing parallel-safe initplans (part of a posted patchset)
LLM analysis, 98% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

This backpatch combines the optimizer fix from d0d44049d1 in thread #47737 with the new aggregates.sql regression test derived from #1. Its added and removed lines match the other supplied backpatch candidates, implementing the decision in #3.

  • Dmitry Dolgovsaw the final versionLLM analysis, 93% sureIn #2, he reproduced the failure on versions 15 and 16, identified the existing fix, and recommended the backpatch that Tom accepted in #3.
Add test case showing that commit d0d44049d fixed a live bug.
18 May 2024Tom Lanemaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1Also in: Allowing parallel-safe initplans (not this thread)
LLM analysis, 99% surewritten from the discussion, no matching patch

Tom added the aggregates.sql and expected/aggregates.out test from Hal Takahara's reproducer in #1, following his commitment in #3 to demonstrate the bug already fixed by d0d44049d1. I disagree with attribution to thread #47737: its 2023 patchsets supplied the earlier optimizer implementation, whereas this new regression test arose here in May 2024.

Credits across 2 commits

Committer
Tom Lane2