model-writtenrun 8157 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jehan-Guillaume de Rorthais relayed Philippe Beaudoin's extension-upgrade crash and supplied #1, explaining that EventTriggerAlterTableEnd appended commands in a short-lived memory context and proposing a switch to the event-trigger context.
- Alvaro Herrera requested regression coverage in #2, leading to the TAP test in #3; Michael Paquier then advocated cheaper SQL regression coverage in #4, which Jehan-Guillaume implemented in #7 while clarifying that reproducing the crash still required an extension.
- Michael Paquier reviewed the SQL test in #8, requesting script guards, explanatory comments, a usable message reference, and removal of a redundant version query, then supplied those refinements and extension metadata in #9.
- Jehan-Guillaume raised a possible nested event-trigger state problem in #10, but withdrew that concern in #12 after discovering that the state allocations were correctly stacked; he then asked why extension-script DDL appeared not to fire his trigger.
- Alvaro initially suggested intentional suppression in #13, but Jehan-Guillaume challenged that explanation in #14; Michael's investigation in #15 demonstrated that the trigger fired and collected ALTER TABLE information, with the missing NOTICE obscuring its execution.
- Alvaro committed #9 with light formatting and test adjustments as ced138e8cb, backpatching to PostgreSQL 13; his announcement in #19 explained that multi-statement query strings survived because of their memory context and acknowledged omitted reviewer credit.
- The thread ended with thanks from Michael in #20 and Jehan-Guillaume in #21, with the fix landed and the suspected additional defects resolved.
- Later, 7978ad0254 extended the code fix to older branches after a report in thread #43151; its latest matching submission belongs to that thread, although the commit credits Jehan-Guillaume's original work here.