model-writtenrun 7968 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexey Bashtanov reported that plain EXPLAIN could take seconds and consume gigabytes of RAM, supplied a reproducer, and proposed skipping HashAgg hash-table allocation in EXPLAIN-only mode #1.
- Heikki Linnakangas committed the patch with only a comment wording change as 2cccb627f1 and announced its acceptance #2.
- Greg Stark argued that the allocation problem warranted backpatching and asked whether the behavior had always existed #3.
- Heikki Linnakangas said he believed the behavior was longstanding and explained that he had initially avoided backpatching out of caution #4.
- Michael Paquier also supported backpatching because of the substantial EXPLAIN runtime difference #5, after which Heikki Linnakangas agreed to perform the backpatches, leaving the fix committed and backpatching agreed at the thread's close #6.