model-writtenrun 128 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported an assertion failure affecting PostgreSQL 14 through master, tracing it to RTE_RESULT removal moving a nested PlaceHolderVar above its consumer and creating circular lateral dependencies #1.
- Richard's patch searches the whole query for nested PlaceHolderVars that require retaining the RTE_RESULT, with tests for outer joins, grouping sets, and cases where removal remains safe; he rejected a unified expression-evaluation walker as too risky for backpatching #1.
- Ayush Tiwari reproduced the failure, agreed with the fix and backpatching caution, and requested updating the comment describing the expanded dependency check #2.
- Richard committed the patch with its logic and tests unchanged, adding the requested comment correction in 3138f248cd.
- Richard closed the thread by confirming that he had updated the comment, pushed the fix, and backpatched it, leaving no outstanding work identified #3.