model-writtenrun 1750 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yuri Zamyatin reported intermittent crashes after upgrading to PostgreSQL 18, involving both partitioned-table queries and hash aggregation, in #1.
- Jeff Davis suspected hash-aggregation changes in #2, but Yuri reproduced a non-hash-aggregation crash in #3; after David Rowley suggested eliminating extensions in #4, Yuri reproduced that failure on a clean installation in #5 and supplied a simpler concurrent reproducer in #7.
- David traced the partition-pruning crash to an uninitialized EPQ partition directory and supplied #8, borrowing the parent's directory while leaving ownership with the parent; he explicitly distinguished this failure from the original hash-aggregation crash in #9.
- Yuri confirmed the EPQ fix worked in #10, Amit Langote added an isolation test in #11, and David approved the updated patch in #12.
- Amit committed #11 as 905e932f09 with unchanged code and tests but an expanded commit explanation and PostgreSQL 18 backpatch target, announcing the push in #13.
- The hash-aggregation investigation continued: Jeff documented an invalid tuple pointer without finding its cause in #14, and Yuri identified an iterator endpoint larger than its hash table in #15.
- David supplied iterator-bound assertions in #16, then identified a grouping-set transition that reset the next iterator using the previous hash table and proposed the one-line correction in #17.
- David produced a small GROUPING SETS query that triggered the assertions in #20 and combined the assertions with the iterator correction in #21.
- Yuri tested both versions with assertions and original data in #22, confirming that the diagnostic patch failed immediately while the corrected patch ran without crashes, although production monitoring remained pending.
- Jeff approved the final hash-iterator patch and corrected its backpatch scope to PostgreSQL 18 in #23; David incorporated that correction into the commit message and landed the unchanged diff from #21 as 5c0a20003b.
- David announced the second push and told Yuri to expect the fix in PostgreSQL 18.1 in #24, leaving both identified fixes committed with no attached patch awaiting review.