model-writtenrun 155 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported two possible planner errors caused by missing outer-join relation IDs in nestloop parameter assignment and proposed counting already-computed outer joins in create_nestloop_plan(), with regression tests, in #1.
- In the same submission, Richard distinguished subqueries, which require a complete PHV value, from function, VALUES and tablesample scans, which can evaluate its expression themselves, and supplied a second patch allowing additional join orders for those scans as a master-only improvement #1.
- The parameter-assignment fix from #1 landed unchanged as c1c9303768, with backpatching through PostgreSQL 18.
- The join-order improvement from #1 landed unchanged as 77e5aeef59, without backpatching because it changes plans rather than fixes incorrect behavior.
- Richard confirmed both patches were pushed in #2; PostgreSQL 16 and 17 were left unfixed because their required alternative would restrict join orders and change working plans, with reconsideration deferred until someone encounters the rare failure there.