model-writtenrun 3217 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo opened the thread with #1, proposing hash-based Right Semi Join plans that use existing tuple match bits to emit each matching inner tuple only once and allow hashing the smaller input; merge-join support was discussed as a possibility but was not implemented.
- After several months, Richard refreshed the patch in #2 and #3, also moving the mergejoin exclusion into clause selection and adding an explicit guard against unsupported mergejoin and nested-loop paths.
- Vignesh reported a postgres_fdw expected-plan failure in #4; Richard explained that the new join orientation changed costs enough to favor a local sort and updated the expected output in #5.
- Alena Rybakina proposed executor assertions to guard against unsupported join methods in #9; Richard argued that planner checks already provided the guarantee in #13, wenhui qiu pointed out the guard in #16, and Alena accepted that explanation in #17.
- Richard revived the patch with an April rebase, explanatory commit message, and comment cleanup in #18, retaining the same executable implementation.
- Japin Li requested clearer restrictions and missing planner comments in #20; Richard incorporated those suggestions in #21, explained that swapping mergejoin inputs offered limited benefit, and repaired a regression query so it continued testing semi-join selectivity.
- Japin Li and wenhui qiu reported successful testing in #22 and #23; Richard subsequently stabilized the revised regression query and removed a blank line in #24, then reported that empty-relation optimization worked correctly in #25.
- Richard posted the final rebase in #26, wenhui qiu reported successful testing in #27, and Japin Li endorsed it with a small terminology suggestion in #28.
- Richard committed #26 unchanged as aa86129e19 and confirmed completion in #29, retaining the existing comment terminology for consistency; the submitted hash-join feature was fully landed, while merge-join support remained outside its scope.