model-writtenrun 9180 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas reported a reproducible BRIN summarization crash and attached a fix in #1, explaining that merge functions can return an input datum whose lifetime is too short and addressing ownership in both inclusion add-value and union functions.
- Emre Hasegeli questioned why the second union argument needed copying in #2, raising the distinction between the two arguments' memory lifetimes.
- Tom Lane requested explicit pointer comparisons instead of direct Datum comparisons in #3, preserving the abstraction without changing the intended behavior.
- After several months without a commit, Alvaro Herrera reminded Heikki about the fix and offered to push it in #4.
- Heikki committed #1 with Tom's comparison changes as 4c87010981, backpatched through PostgreSQL 9.5, and confirmed completion in #5, explaining that the first union argument is long-lived and modified in place while the second is short-lived; Alvaro's thanks in #6 closed the thread.