model-writtenrun 5002 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo proposed inspecting SubPlan test expressions to identify nonnullable relations and Vars, enabling additional outer-join reductions and affecting join legality checks, and supplied an initial patch #1.
- Tom Lane identified that ALL_SUBLINK can return true for an empty subquery, requested explicit sublink-type checks, and asked for justification of passing top_level through the walkers #2.
- Richard Guo revised the patch to inspect ANY_SUBLINK only at top level and ROWCOMPARE_SUBLINK regardless of top level, adding comments explaining the empty-subquery behavior #3.
- Tom Lane committed the revised patch as ff8fa0bf7e, preserving its logic while reordering node handling, rewriting comments, and replacing the temporary-table tests with a test using existing regression tables #4.
- Richard Guo thanked Tom Lane for the changes and commit, closing the thread with the work landed and no outstanding requests #5.