model-writtenrun 4570 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Gowtham Reddy reported a partitioned-table MERGE failure involving a source-referencing scalar subquery in the UPDATE target list and both UPDATE and INSERT actions, supplying a reduced reproducer in #1.
- Tender Wang traced the failure to a missing parent PlanState during partition-specific UPDATE projection initialization and supplied a one-line fix matching ExecInitMerge(), reporting successful regression tests in #2.
- Gowtham confirmed that the fix made both the original reproducer and a MERGE taking the UPDATE path succeed in #3.
- Dilip Kumar endorsed the analysis and fix but requested regression coverage in #5; Tender added that coverage without changing the executor fix in #6, and Dilip approved the revision in #7.
- Dean Rasheed committed #6 as 7a5559a620 with light comment, formatting, and commit-message edits, then confirmed the push and backpatching through PostgreSQL 15 in #8, leaving no outstanding work stated in the thread.