model-writtenrun 6919 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Oct 2025 - Jan 2026 · 12 entries
- Robert Haas proposed pg_plan_advice as a contrib module that generates textual descriptions of scan, join, partitionwise, and parallel choices and can enforce them on later planning, supported by core metadata and hooks; costing estimates, sorting, and aggregation control were outside the initial scope #1.
- Haas rejected selecting advice through a finished-plan hash because selection must happen before planning, instead anticipating cheap matching by query identity, text, or structure #3.
- Early testing drove compiler, list-management, collector, and parser fixes through #9, #10, and #13; Dian M Fay’s RLS experiment also clarified that advice cannot force a semantically illegal path, while negative advice was deferred #14 #15.
- An independently landed partitionwise-join fix made the temporary workaround unnecessary, so Haas removed it from the series #17.
- Amit Langote argued for reusable relation identifiers in core, but Haas retained the minimal core/contrib split until a concrete core consumer emerged; he also rejected duplicating immutable plan trees and deferred partition templates and wildcard advice #22 #25 #27 #24.
- Jacob Champion’s fuzzing and regression deltas exposed empty identifiers, trove initialization, malformed Gather targets, and partition-schema matching; Haas incorporated these with Ajay Pal’s NO_GATHER corrections and more stable partitionwise tests #33 #34 #46 #50.
- Lukas Fittl tested the planner hooks by porting pg_hint_plan, found a cost_index error, and confirmed the corrected hooks could replace copied planner machinery, making that prerequisite independently useful #44 #51 #52.
- Lukas supplied the AppendPathInput abstraction to replace proliferating parallel lists, and Haas incorporated it with coauthor credit; subsequent revisions corrected accumulated child metadata, unrolled joins, missing partitions, semijoin observation, and feedback matching #60 #63 #66 #71.
- John Naylor’s hashing review prompted a separate hashfn_unstable.h proposal; Haas rejected its NULL-handling branch and questioned its length guidance in #64 and #65, after which the documentation change was submitted as #611657 in thread #53086 and landed with wording edits as 7892e25924.
- Haas restricted nested target lists outside JOIN_ORDER, strengthened semijoin tests, added full SGML documentation and prepared-query advice storage, and moved the strategy-mask prerequisite to the front of the series #74 #78 #79.
- The strategy-mask prerequisite landed from #79 with only comment corrections as 4020b370f2; the remainder simultaneously dropped explicit bitmap-index combinations because choose_bitmap_and uses separate heuristics that required more design #83.
- Zsolt Parragi, Tom Lane, Lukas Fittl, and Richard Guo identified an overwritten disabled-node count, uninitialized materialization state, and dereferencing before a NULL check; their reports produced 71c1136989 without an indexed combined patchset, alongside a parallel materialization-failure report in thread #246200 #84 #85 #87 #88.
Feb - Mar 2026 · 22 entries
- Haas introduced a test module that generates advice and replans every regression query, exposing problems with cursor options, Materialize costing, single-copy Gather nodes, enable-GUC interactions, and hiding indexes needed for join elimination #97.
- The cursorOptions and Materialize fixes were extracted unchanged from #97 as 0f4c8d33d4 and cbdf93d471.
- Alexandra Wang’s metadata review added missing tests and corrected Append propagation; the range-table, elided-node, and Append components then landed from #97 with expected-output adjustments as adbad833f3, 0d4391b265, and 7358abcc60 #93 #98 #99.
- Warning-enabled replanning tests showed that the relation-info hook could not handle non-table RTEs, so Haas moved it to build_simple_rel and changed identifier construction to use the stable query rtable instead of mutable planner arrays #103 #105.
- Alexandra’s detailed main-module review found list, pointer, shared-memory, cleanup, and test defects; Haas fixed them, split collection into pg_collect_advice, and introduced pg_stash_advice as a pluggable query-ID-to-advice mapping #106 #107 #108.
- David G. Johnston supplied independent documentation edits for the main module, collector, and stash, while Jakub Wartak tested live overrides, prepared-plan invalidation, and memory behavior; Haas incorporated selected changes while retaining existing scope limits #109 #110 #111 #112 #113 #118 #125.
- The replacement hook and disabled-index components were extracted from #108 as 91f33a2ae9 with a comment correction and 0fbfd37cef unchanged, completing those prerequisites #125.
- Haas landed the main module from #125 with only ignore-file and comment edits as 5883ff30b0, then resent the collector, test module, and stash for further review #126.
- Lukas’s post-commit review supplied parser and scanner fixes plus a partition-parent advice prototype; Haas extracted the identifier-keyword portion unchanged as 5e72ce2467, while deferring the partition-parent feature and broader join-advice changes because their design, performance, and concurrency implications needed more work #128 #134 #135 #137.
- Zsolt’s Makefile/Meson header-install fix landed unchanged from #130 as 59dcc19b39; Alexander Lakhin’s GEQO crash report led to #132, which Haas augmented with a bitmap copy before landing 01b02c0eca #129 #139.
- Alexandra and Lukas tested the remaining replanning module, which landed from #126 with a header include-path adjustment as e0e4c132ef, leaving only collector and stash patches #127 #128 #139.
- Tom Lane exposed copy-and-paste errors in prepared-query regression tests, and Haas supplied corrected EXECUTE targets in #143; Tom then confirmed the fix #142 #146.
- Tom questioned the cost of running the entire regression suite again, while Matheus Alcantara demonstrated that scheduling the TAP test earlier reduced elapsed time; his inline priority-50 change became 12444183e4 #148 #152 #154.
- Buildfarm failures showed that memoized nested loops could be required even when ordinary nested loops were disabled; Haas corrected the reversed condition in his submitted patch #153 before landing dc47beacaa #162.
- Other intermittent failures showed that concurrent statistics changes could select different alternative subplans or MinMaxAgg plans, so Haas expanded stabilization with disabled-node accounting, centralized planner state, alternative-plan metadata, and DO_NOT_SCAN advice #161 #163.
- Lukas reviewed that stabilization series, proposing safer metadata and array sizing; the disabled-node component landed unchanged as 47c110f77e, while the planner-state component gained allocation and GEQO lifetime corrections before landing as 5dcb15e89a #164 #168.
- After alternative_root became alternative_plan_name and Lukas approved the revision, the two remaining stabilization components landed unchanged from #168 as 26255a3207 and 6455e55b0d #169 #171.
- The collector drew concerns about unbounded query-text storage, allocation failures, and lock contention despite redesigned tests; it was eventually dropped from the submitted series #164 #170 #173 #174 #183.
- Alexander’s partitionwise-aggregate reproducer exposed a NULL relids assertion distinct from expected GEQO limitations; Haas’s proposed guard in #175, outside the indexed patchsets, became e2ee95233c #172.
- Haas examined stash storage, matching, privileges, persistence, limits, and feedback; Lukas supported cluster-wide shared memory with query-ID matching and supplied restart-persistence code on top of #168 #178 #179.
- After Haas identified concurrent-writing and partial-loading hazards, Lukas replaced synchronous persistence with a background writer; his separate named-DSA memory-reporting proposal was rejected because Haas wanted to retain pointer-owned shared structures #180 #181 #182 #184.
- The underscore bug reported and patched by Lukas in #128 was independently addressed by Chao Li and Daniel Gustafsson in thread #253103; their later patch #1148297, with an additional out-of-range test, became dfde93581d, so that July landing belongs to the later thread.
Apr 2026 · 6 entries
- Haas rewrote persistence almost completely, retaining Lukas’s coauthor credit, and split stash code while adding atomic change counts, configurable write intervals, strict parsing, a startup mutation gate, and tests; CI fixes and Lukas’s final testing followed #183 #187 #192.
- The stash component landed essentially unchanged from #187 as e8ec19aa32, followed by persistence as c10edb102a with zero-query-ID validation and shared dump-iteration locks #208.
- Tom’s report of concurrent DDL invalidating advice led to a proposal to retry complete generate-and-apply cycles; Haas preferred this to serializing the test suite, while discussion also examined compatibility with extension-created plan shapes #185 #189 #193 #200 #209.
- Alexander’s SQLsmith tests found missing metadata for fully pruned subqueries and scan-level Materialize nodes above nonrepeatable TABLESAMPLE scans; Haas added dedicated fixes, feedback exports, a missing Makefile test entry, and the proposed retry loop in a new series #197 #199 #209.
- Four components of #209 landed with unchanged code as c644aca240, 3311ccc3d2, 1faf9dfa47, and 0f93ebb311; after Tom and RMT feedback, Haas held the retry-loop component to observe the failure rate #210 #211 #212 #213.
- Alexander then found an outer-join/unique-semijoin failure, Tender Wang diagnosed the extra join RTI and tested an inline fix, and Haas corrected its filtering order and redundant copy before landing 4321dcad47 with a regression test #214 #215 #217 #218.
Jun 2026 · 1 entry
- At the last supplied message, Michael Paquier reported that adapting pg_hint_plan to the new hooks removed most historical planner hacks and outlined future convergence; the main module, tests, stash, and persistence had landed, the collector was dropped, and the retry loop remained held in the available record #219 #183 #213.