model-writtenrun 2047 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yaroslav Syrytsia reported a PostgreSQL 17.5 crash during concurrent execution, with a null projection pointer in ExecGetUpdateNewTuple(); Tom Lane and Michael Paquier requested enough query and schema information to reproduce it, and Yaroslav supplied a small reproducer #1 #2 #3 #4.
- Dean Rasheed traced the failure to trigger code identifying MERGE through the top-level command type, which fails when MERGE appears inside a CTE and incorrectly allows ordinary UPDATE projection processing #5.
- Dean supplied an isolation-test reproducer and proposed passing operation information into the trigger interface; Michael confirmed that v17 needed an ABI-preserving wrapper because extensions call that interface, while v18 and HEAD could change it directly #6 #7.
- Dean's complete patch used boolean MERGE flags and covered both UPDATE crashes and incorrect DELETE action selection, retaining the reproducer and supplying separate HEAD/v18 and v17 implementations; an existing isolation test already covered the DELETE issue #8.
- Michael reviewed both implementations favorably, and Dean committed the HEAD patch unchanged as 5022ff250e, with backports through v17, then announced it was pushed #9 #10 #11.
- Yaroslav tested a fresh v17 stable-branch build after the commit and confirmed that the reported issue was resolved, closing the thread with the fix landed and verified #12.