model-writtenrun 1588 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Altan Birler reported a backend crash involving COUNT() in a HAVING clause, supplying a minimized query, a bisect result, and a backtrace showing a NULL planner root in #1.
- David Rowley identified that aggregate simplification had overlooked cases where context->root is NULL, including calls through estimate_expression_value(), in #2.
- David Rowley's patch in #2 preserved generic aggregate processing but skipped simplify_aggref() when no PlannerInfo was available.
- The patch from #2 landed unchanged as 5424f4da90, crediting David Rowley as author and Altan Birler as reporter.
- David Rowley confirmed the push in #3, closing the thread with the fix committed and no outstanding requests.