model-writtenrun 633 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Arne Roland reported an assertion-triggering query involving left-join removal, an OR clause, and a partitioned table, and proposed recursively cleaning embedded PlaceHolderVars while tracking processed join clauses in #1.
- Tender Wang explained that restriction extraction happens too late for the existing cleanup and that surviving join clauses also require treatment, judging Arne's patch workable in #2.
- Arne Roland clarified that the same issue should affect UNION, plain inheritance, and other append-producing queries in #3.
- Richard Guo retained Arne's approach, polished helper naming and comments, and added a regression test and commit message in #4.
- Richard Guo committed #4 unchanged as d68576bcfc, with backpatching through PostgreSQL 18, and confirmed completion in #5, leaving no outstanding work stated in the thread.