model-writtenrun 186 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported a LATERAL UNION ALL query that triggers an assertion because an appendrel child's targetlist can contain Vars belonging to another relation #1.
- Richard Guo proposed ignoring those unrelated Vars, corrected the comment about non-Var expressions, and attached a regression test #1.
- shihao zhong endorsed the patch, confirmed the test reproduces the assertion, and demonstrated that the fix also handles a CTE scan; he suggested mentioning that case in the commit message #2.
- Richard Guo committed the attached patch unchanged apart from rebase offsets as 11b56ee273, crediting shihao zhong's review; the optional CTE example was not added to the commit message.
- Richard Guo confirmed that the fix had been pushed and back-patched to all supported branches, leaving no outstanding work stated in the thread #3.