model-writtenrun 8628 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Aug - Oct 2017 · 6 entries
- Ashutosh Bapat opened #1 to separate advanced partition matching from basic partitionwise joins, proposing merge-style matching for list and range partitions with differing bounds but at most one matching counterpart per partition.
- The initial design in #1 excluded matches requiring multiple partitions to be grouped together and outer joins requiring a nonexistent nullable-side partition because the planner lacked the necessary relation-building infrastructure.
- Rajkumar Raghuwanshi's tests in #2 and #4 exposed crashes and wrong results, which Ashutosh fixed while incorporating the tests into the series in #5.
- Antonin Houska questioned repeated bound merging in #7, and Ashutosh explained in #8 that different candidate pairs of joining relations required their own partition-pair identification.
- After basic partitionwise joins landed, Ashutosh adapted the advanced series in #9 and subsequently added default-partition matching in #12, retaining the one-to-one restriction.
- Robert Haas extracted the range-comparison API prerequisite from the series last indexed at #9, incorporating subsequent documentation changes as b022923556 and announcing it in #22.
Feb - Nov 2018 · 7 entries
- Amit Langote requested documentation and whitespace fixes for the shared bound-comparison prerequisite in #14, which Ashutosh supplied in #16; Amit also found stray semicolons affecting default-partition control flow in #20, corrected in #21.
- Ashutosh addressed child-join targetlist crashes in #23 by translating the parent targetlist, since advanced matching could construct parent and child joins through different relation pairs.
- Dmitry Dolgov's reviews in #26 and #28 identified memory-management and readability problems, leading to expanded comments and consolidated missing-partition handling in #30 and #32.
- After Amit reported changing plans in the auxiliary test suite, Ashutosh clarified in #36 that the large exploratory suite was a development aid and only useful regression cases would be retained.
- Dmitry proposed binary searches to skip partition gaps in #38 and #42, but Ashutosh defended predictable linear merging in #43 and #45, with Robert supporting optimization for nearly matching bounds in #46.
- Following functional and performance checks in #47, Dmitry took over maintenance with Ashutosh's agreement in #50, rebased the series in #51, and simplified partition maps and control flow in #53.
- Dmitry accidentally rebased an older branch in #54, reviving code with an uninitialized-variable warning; he restored the intended branch in #56 and corrected expected test output in #57.
Jan 2019 - Apr 2020 · 21 entries
- Etsuro Fujita resumed review in January 2019 and removed the child-targetlist prerequisite in #60 because equivalent functionality had already landed independently.
- Rajkumar's testing exposed another list-partition crash in #64; Amul Sul fixed unset merged indexes in #66, Rajkumar verified the fix in #67, and further initialization cleanup followed in #71.
- Amit confirmed the missing nullable-side partition limitation in #73 and proposed future support through NULL projection rather than invented base relations, an approach discussed favorably in #75 and #76.
- Etsuro consolidated implementation and tests in #81, replacing the separate hash-bound equality refactoring with the existing equality function while retaining exact-bound requirements for hash partitions.
- Performance investigation in #82 and Amit's review in #87 prompted reuse of established join partitioning and an equal-bound fast path in #89 and #90, substantially reducing multiway-join planning overhead.
- After Amul's review in #92, Etsuro incorporated the planning changes in #96, then repaired list-partition matching through new mapping and remapping bookkeeping in #97.
- Amul supplied cleanup in #98; Etsuro accepted selected assertions and outer-join checks while rejecting unconditional helper calls as unnecessary overhead, then integrated the revised delta through #100 and #101.
- Amul added coverage-driven tests in #102, and Etsuro incorporated them while changing range merging to advance both matched partitions in #104; Amul then standardized arguments and reused comparison results in #105.
- Etsuro rewrote NULL-partition handling around strict equality and fixed memory leaks in #107, with Amul reporting successful testing in #110.
- In #112, Etsuro restored the original regression coverage alongside separate advanced-matching tests and fixed a missed opportunity to match NULL-only partitions for outer joins.
- Mark Dilger's additional range/list tests in #113 exposed pruning-related limitations, prompting Etsuro's pruning-aware partition matching in #115.
- Some of Mark's examples concerned broader planning restrictions or locale-dependent behavior, so Etsuro kept focused multilevel tests in #120 rather than including every proposed example.
- Ashutosh proposed replacing relid-based matching with an ordered scan in #121, but Etsuro demonstrated crossed list-partition matches in #122, and Ashutosh accepted retaining the existing method in #123.
- Etsuro's #124 clarified partition-count state, removed unused arguments, reorganized helpers, and repaired a three-way-join test whose outer join had been reduced to an inner join.
- Tomas Vondra's reviews and patches in #125 and #126 led to clearer documentation, removal of a redundant local flag, and extraction of partition-bound computation; Ashutosh supplied follow-up edits in #127.
- Ashutosh opposed adding a separate configuration switch in #128, and Etsuro agreed while consolidating the review changes in #130.
- Etsuro posted the complete final patch in #131, incorporated and reworded Ashutosh's comment delta #133, and landed c8434d64ce with unchanged executable code and tests, announcing the push in #136.
- Kuntal Ghosh reported an unused-variable warning in non-assert builds in #138; Etsuro proposed removing the assertion and both locals in #139, while Ashutosh independently retained the assertion and removed only the unused local in #140.
- Kuntal confirmed that both warning fixes worked in #142, while Ashutosh and Tomas argued for retaining the assertion's protective value in #146 and #147.
- Ashutosh resent his warning fix in #151, and Tom Lane committed it unchanged as 401418ca6a, leaving the alternative assertion-removal patch unused.
- By the final exchange #154, the feature and warning fix had landed; Etsuro explained why he declined an additional partition-count assignment, while generalized hash matching, multiple-partition counterparts, and missing nullable-side partitions remained outside the implemented scope.