model-writtenrun 762 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Kuzmenkov reported a PostgreSQL 18 assertion failure involving a unique index, partitioning, a removable left join, and an empty grouping set, supplying a compact reproducer in #1.
- Tender Wang reproduced the failure on HEAD and traced it to stale relation references inside an embedded PlaceHolderVar in #2; after investigating subquery pullup in #3, he proposed an inline fix during child-clause inheritance and reported passing regression tests in #4.
- Richard Guo supplied a broader fix in #5, cleaning embedded PlaceHolderVars in surviving restriction clauses and equivalence-class expressions during join removal; he rejected making pull_varnos() tolerate stale references because it could not reliably distinguish removed relations from unbuilt appendrel children and broke partitionwise joins.
- Tender Wang endorsed the broader approach in #6 and requested skipping Const nodes in #7, which Richard incorporated in #8; they left restructuring the shared join-removal bookkeeping for separate future work.
- Tender Wang's instrumented testing raised doubts about the mutator's Query branch in #9; Richard explained that subqueries and upper-level placeholders were already processed at this stage, then removed the unreachable traversal and context struct in #10.
- Richard committed #10 with only helper ordering and declaration changes as 9a60f295bc, with a backpatch through PostgreSQL 18, and announced completion in #11; the bug fix was fully landed, while the broader bookkeeping refactor remained future work.