model-writtenrun 286 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported that lateral references hidden in join alias Vars bypassed subquery pullup safety checks, causing assertion failures or wrong phnullingrels errors, and proposed flattening targetlist and jointree-qual aliases before the recheck in #1.
- Tatsuya Kawata tested the patch successfully and demonstrated that the unpatched code could silently discard unmatched outer-join rows, returning one row instead of four, which motivated his backpatch recommendation in #2.
- Richard explained that the existing regression tests already covered that query pattern in #3, and Tatsuya clarified that his additional finding was the silent wrong-result behavior relevant to backpatching in #4.
- Richard committed #1 as d4c15309e7, retaining its tests and helper while restricting jointree-qual flattening to LATERAL subqueries and clarifying comments.
- Richard confirmed that the fix had been pushed and backpatched to all supported branches in #5, leaving no outstanding work stated in the thread.