model-writtenrun 3817 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Neil reported that the ON CONFLICT trigger documentation was difficult to understand and asked when both INSERT and UPDATE triggers fire in #1; Bruce Momjian agreed that clarification was needed in #2.
- Peter Geoghegan explained in #4 that EXCLUDED carries BEFORE INSERT trigger effects into the update path, where non-idempotent triggers can produce surprising results.
- After six years, Bruce revived the issue with a simplifying patch in #5; Laurenz Albe questioned its vague EXCLUDED sentence in #6, prompting Bruce to explain explicitly how BEFORE INSERT changes affect EXCLUDED values in #7.
- David G. Johnston advocated a direct explanation of trigger execution order and better placement of partitioning material in #8, while Peter criticized the ambiguous reference to 'the same row' in #9 and Laurenz reiterated that the existing documentation was impenetrable in #10.
- Bruce tightened the explanation and moved the partitioning paragraph in #11; Laurenz found the resulting wording understandable in #12, although he could not confirm that it retained every detail of the original.
- Bruce committed #11 unchanged as 2cc2d02dd0 and confirmed completion on master in #13, explicitly accepting the loss of some previous detail as an improvement; David's broader suggestion to integrate the MERGE discussion remained outside this change.