model-writtenrun 10371 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Aug - Oct 2017 · 6 entries
- Amit Langote opened the work with #1, proposing faster planner-time partition pruning and deferring leaf-partition locking and opening until the planner knew which partitions survived.
- The first actual pruning implementation #4 searched partition bounds instead of testing every partition constraint and reported a large planning-time reduction, but still lacked OR-clause and redundant-clause handling.
- Ashutosh Bapat urged reuse of partitionwise-join metadata in #2, while Robert Haas argued in #5 that reusable pruning should come before locking optimizations; Amit consequently dropped the locking-heavy design in #7 and withdrew his competing hierarchy patch in #10.
- Dilip Kumar supplied reusable clause-matching refactoring in #19, which Amit incorporated and credited in #30 while rebasing onto shared planner infrastructure.
- Robert’s compact range-result proposal in #25 and David Rowley’s interface review in #36 led to #41, separating planner clause matching from reusable bound analysis intended to support future runtime pruning.
- Rajkumar Raghuwanshi and Beena Emerson tested the October versions, exposing compilation failures, default-partition wrong answers, subpartition crashes, Params, and array-expression cases; fixes through #63 added inherited-constraint handling and broader regression coverage.
Nov - Dec 2017 · 4 entries
- David replaced the increasingly complex min/max result representation with a Bitmapset proposal and bms_add_range in #66; Amit adopted it in #72, and David and Kyotaro refined the bitmap implementation through #88.
- The series #92 added hash pruning and integrated default-constraint fixes and review feedback, while #97 corrected the assumption that every hash remainder already had a partition.
- Robert committed the baseline pruning tests from #97 as 8d4e70a63b, with test naming and expected-output adjustments, and extracted its unchanged bitmap helper as 84940644de.
- After those prerequisites landed, #111 reorganized the remainder into smaller planner changes; David’s reviews led to separate hash/list/range lookup functions in #118, dedicated list-only not-equal pruning in #119, and memory-leak fixes in #126.
Jan - Feb 2018 · 8 entries
- January review and testing refined nullness, clause matching, and excluded-set handling through #151, including David’s not-equal bitmap rewrite #145.
- David’s deltas #155, #158, and #165 removed duplicate clause processing and separated planner preparation from reusable pruning execution; Amit credited him as coauthor in #159 and integrated the context-based interface in #168.
- Kyotaro’s review #171 exposed NULL-IN and OR-processing problems fixed in #173, while David’s delta #174 made clause information reusable across repeated runtime evaluations.
- Robert rejected generic partition-bound dispatch in #175; Amit supplied separate typed search routines in #176, and that prerequisite landed unchanged as 9aef173163.
- Robert’s module-boundary review #179 and Ashutosh’s concerns about dummy relations and partitionwise planning #188 produced the substantial restructuring in #190, placing planner pruning work in its own module and narrowing intrusive planner changes.
- Amit started the broader partition-cache reorganization in #191, then moved it to a separate thread in #196; the eventual da6f3e45dd derives from later revisions in thread #38549.
- February revisions fixed Boolean clauses, unary operators, collation matching, and LIKE failures, including Rajkumar’s test #206; Robert then extracted the two API prerequisites from #211 as b022923556 and f724022d0a.
- The partition-scheme discussion uncovered an existing collation bug: Robert posted #221, Amit corrected it and supplied a separate test in #222, and the code alone landed as 2af28e6033, leaving the test to be revised in #228.
Mar 2018 · 7 entries
- Robert’s review #238 proposed a uniform pruning program of base and combine steps instead of ad hoc clause structures, and #247 insisted on correct cross-type comparisons; Amit implemented the major step-node rewrite in #249.
- Jesper Pedersen’s testing #250 and David’s review #255 refined step handling and restored hash pruning with NULL keys in #257, while #261 removed unnecessary runtime context from planner-only functions.
- David’s separate UPDATE/DELETE experiment #258 reported roughly twenty-six-fold faster planning with 1,024 partitions, but #260 kept that work separate to avoid delaying the main feature.
- David’s deltas #265 and #268 repaired cross-type comparison selection and simplified strategy-specific lookup; #269 accidentally repeated the previous attachment, and #270 supplied the intended next delta.
- Amit removed recursive step execution in #272, then changed intermediate results from partition indexes to datum offsets in #279 so conjunctions could correctly eliminate multi-value list partitions.
- Late-March review found multicolumn MINVALUE, default-partition, hash-loop, and node-serialization problems; Jesper’s #282, David’s #284 and #291, and Tomas Vondra’s #285 drove the corresponding fixes.
- The inversion operation introduced in #283 caused generic-plan and unavailable-Param problems, prompting #294 and #296; David’s alternative #299 led Amit to remove inversion entirely in #303 and handle not-equal comparisons directly in list-bound lookup. A proposed broader NOT optimization was also left out after #301 argued that proper operator negators should address that case.
Apr 2018 · 7 entries
- David’s final review #307 and Jesper’s testing and corrections #308 fed into #310, after which Álvaro Herrera consolidated the implementation in #312 and incorporated Amit’s header and comment fixes #316 and #317.
- Álvaro posted the final consolidated implementation #325, Jesper confirmed it passed check-world in #327, and 9fdb675fc5 landed with naming, type, indexing, and comment cleanup in the new partitioning module.
- Buildfarm failures immediately exposed endian-dependent hash-test expectations; David split the tests with #337 and #340, and Andres Freund collapsed both patches unchanged into 40e42e1024.
- Andres separately proposed an inline SE-PostgreSQL expected-output correction in #329 and committed 4f813c7203; David’s identical attachment #352 arrived afterward.
- David proposed updating constraint_exclusion documentation in #361, and Amit revised it in #362 to preserve the UPDATE/DELETE limitation because the new pruning path initially served SELECT planning.
- Concerns about alternate expected outputs led Robert to suggest deterministic custom hash opclasses in #363; Amit’s series from #365 through #375 incorporated David’s and Ashutosh’s reviews and shared existing opclass definitions, landing unchanged as fafec4cce8.
- Broader regression-test reorganization was left outside the portability fix in #380 and dropped from that discussion in #381, keeping the immediate repair focused.
May 2018 · 4 entries
- Marina Polyakova’s crash report #384 prompted Michael Paquier’s conservative array-coercion rejection #387; Amit agreed in #388 to defer evaluating coerced array elements during planning.
- Álvaro found a related empty-step crash and expanded the repair in #391, Amit added earlier unsupported-operator rejection in #392, and the combined fixes landed with only a comment edit as d758d9702e.
- The same final review produced the static-function cleanup #396, committed unchanged as d1e2cac5ff, and revived Michael’s switch-default cleanup #397, committed unchanged as c775fb9e18.
- By Marina’s closing thanks in #403, the main feature and the identified follow-up fixes had landed without a feature revert; the documentation revision #362, separate UPDATE/DELETE work, and more ambitious coerced-array pruning are not shown completed here.