model-writtenrun 5383 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported that standard_join_search() confused the top of a join subproblem with the whole query's topmost join, preventing useful Gather paths above parallel sub-joins, and proposed comparing relids with all_baserels in #1; he attached the fix and a FULL JOIN regression test in #2.
- Nearly a year later, Antonin Houska argued in #3 that the test depended on the executor's inability to run parallel FULL JOINs and should instead demonstrate that gathering a sub-join wins on cost.
- Richard proposed a nested-loop example with join_collapse_limit in #4, refined it to use a small third table so a parallel nested-loop alternative remained possible in #5, and submitted the revised test with unchanged planner logic in #6.
- Antonin accepted the revised example in #7, noted that resetting parallel_workers immediately before rollback was redundant, and marked the patch ready for a committer.
- Tom Lane committed d8e34fa7a1 from #6, adding the equivalent GEQO fix and making the baserel check consistent; the commit message limited backpatching to v15 because older stable branches should avoid unnecessary plan changes.
- In the final message, #8, Tom confirmed the commit and explained that he omitted the regression test because it missed the GEQO bug and would not catch the anticipated future all_baserels-related failure, leaving the fix landed with no further revision pending in the thread.