model-writtenrun 6048 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sergey Shinderuk reported a bug found by Alex Kozhemyakin: DefineRange() freed an explicitly supplied multirange name still owned by the parse tree, corrupting data subsequently passed to event triggers, and asked whether to remove pfree() or copy the name in #1.
- Peter Eisentraut endorsed removing the pfree() in #2, settling the proposed fix.
- Sergey submitted the one-line deletion in #3, leaving the separate multirangeArrayName cleanup intact.
- Michael Paquier approved the patch in #4, judged removing pfree() simpler than adding pstrdup(), and reported finding no similar mistakes in other QualifiedNameGetCreationNamespace() callers.
- The patch from #3 landed unchanged as 5b0e7fe1d6 with a PostgreSQL 14 backport; Sergey closed the thread with thanks in #5, leaving no outstanding work.