model-writtenrun 1636 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ilia Evdokimov proposed sorting and merging MCV lists for inner and semi joins after finding quadratic matching dominated planning at high statistics targets on the JOB benchmark #1.
- Ilia corrected semijoin array bounds and reused comparator call state in #2, then added protection against NULL comparison results in #3; Tom Lane questioned the need, and Ilia clarified that comparison functions, rather than MCV entries, could return NULL #4 #5.
- David Geier proposed hashing the smaller list and supplied an inner-join prototype whose synthetic benchmark beat sorting and merging #6 #8; Ilia's rerun also favored hashing, and they deferred a merge fallback for non-hashable types #13 #11.
- Ilia reviewed the hash implementation's structure and requested semijoin support #15; David incorporated those changes in #16, while leaving consolidation of the nested-loop implementation for later work.
- Ilia reported substantial gains for large MCV lists and interpreted small-list differences as noise #18, then raised an operator/function-OID concern and supplied a revision with separate parameters for eqjoinsel_semi() #19 #20.
- Tom interpreted the small-list results as regressions, requested a higher hashing threshold, and proposed sharing matching work between inner and semi joins #23; Ilia responded with a two-patch series that reused match statistics and raised the threshold to 100 #24.
- Tom replaced the duplicated matching implementations with a common helper, handled reversed operators without commutator lookup, and enabled cross-type hashing by distinguishing insertion from probing #25; he also supplied timing instrumentation explicitly excluded from the intended commit.
- Ilia reviewed Tom's refactoring, measured approximately halved semijoin selectivity time, and found an uninitialized nmatches value when matching results were reused #27; Tom fixed that and replaced the duplicate-entry assertion with tolerant handling in #31.
- David's delayed review of the earlier OID revision reported passing regression tests while questioning whether that adjustment was necessary #28; Ilia redirected him to the newer refactoring series #30.
- Tom and David explored thresholds based on list products, sums, and estimated hashing costs #31 #32 #33 #34, but direct integer and text benchmarks led Tom to recommend hashing when the two list lengths sum to at least 200 #35.
- David independently tested the threshold and accepted it, and Ilia agreed #36 #37; Tom's final message announced that he would push that rule while leaving datatype-dependent crossover costs as a possible subject for further investigation #38.
- The production changes from #31 landed together in 057012b205, with the agreed summed-length threshold, a corresponding debug threshold of 20, and minor duplicate-handling edits; the temporary instrumentation was omitted, and no production patch remained pending.