model-writtenrun 10197 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Dec 2016 - Apr 2017 · 10 entries
- Amit Khandekar introduced Parallel Append in #1 to distribute workers across child plans and allow a parallel Append to contain both partial and parallel-safe non-partial children, initially using shared worker counts and per-child limits.
- Ashutosh Bapat's initial review questioned synchronization complexity, partial-path identification, and costing in #2, while Amit Khandekar argued in #3 that worker distribution and non-partial-child support should remain together because their synchronization was interconnected.
- The first revisions introduced explicit per-child worker limits in #7, while Amit Langote's executor review in #5 identified the need to assert that parallel execution does not scan backward.
- Robert Haas distinguished the hard one-process limit for non-partial plans from optional limits on partial plans in #10 and advocated logarithmic worker growth in #15; #28 consequently removed partial-plan worker caps and stopped summing every child's worker demand.
- An attempt to infer partial status from a child's cheapest path in #22 was rejected as fragile during review in #29, so #40 restored explicit bitmap tracking.
- Ashutosh Bapat proposed circular scheduling in #35, and Robert Haas proposed expensive non-partial plans first with the leader working backward in #41; #49 implemented that design using finished flags and a first-partial-plan boundary instead of worker counts and bitmaps.
- Robert Haas's review in #52 required an LWLock instead of a loop under a spinlock, qsort-based ordering, documented configuration, and consideration of cheaper non-partial children even when partial paths exist; #58 incorporated those changes.
- The costing discussion converged on assigning non-partial costs to simulated workers and taking the largest accumulated cost in #59, with a work-in-progress helper in #61 integrated into the complete costing revision in #64.
- Rajkumar Raghuwanshi's testing found that the additional lock tranche broke initdb in #62, and #63 increased the initial tranche-array allocation.
- Andres Freund reviewed executor safety and challenged logarithmic worker selection in #65, leading to comment corrections in #69 but continued disagreement over cost-based worker sizing; Robert Haas deferred the feature beyond PostgreSQL 10 in #71 and treated broader worker-costing improvements as separate work in #75.
Jun - Dec 2017 · 13 entries
- After the spring discussion, development resumed through summer rebases beginning with #81, and Rafia Sabih's partitioned TPC-H tests in #84 reported substantial gains that prompted closer investigation of changed plans and estimates.
- Amit Khandekar's follow-up measurements in #87 found gains concentrated in partitionwise joins, Rafia Sabih identified estimation differences in #94, and a missing partial nested-loop path was explicitly assigned to separate work in #89.
- Amit Kapila found that shared rescan state belonged in ExecParallelReInitializeDSM in #90, which #93 addressed by adding ExecAppendReInitializeDSM and refining executor and planner comments.
- Further review produced parallel-aware all-partial alternatives in #102, while the debate over keeping the leader available to consume worker tuples led to sorting partial children by descending startup cost in #117.
- Robert Haas's executor review in #118 called for delaying subplan claims until execution and simplifying traversal; #119 implemented lazy selection, removed redundant traversal state, and renamed the configuration setting to enable_parallel_append.
- The same review exposed misleading boilerplate about serializing executor nodes, and Robert Haas independently committed corrected estimation-function comments as 11c1d555ce, confirming the cleanup in #120.
- Robert Haas took over a substantial implementation revision in #121, replacing scattered selection branches with function-pointer dispatch, fixing local versus shared rescan resets, correcting append flattening and row estimates, and simplifying worker-count calculation.
- Amit Khandekar and Rafia Sabih found crashes in the rewritten executor in #122 and #123; after the rebase in #124, Amul Sul supplied the small fix in #125 that increments the next-plan index before checking wraparound.
- Amul Sul's full submission in #127 accidentally omitted that fix, which Rajkumar Raghuwanshi's test exposed in #128; Amul acknowledged the omission and included the fix in #129.
- Rafia Sabih successfully tested the crash fix and published more modest performance gains in #130, while Rajkumar Raghuwanshi found another crash with partitionwise joins in #131.
- Amul Sul traced the remaining failure to exhaustion of an Append with no partial children and supplied handling and assertions in #133.
- Robert Haas locally rewrote that final exit condition and revised regression tests before committing #133 as ab72716778, announcing the landing in #135.
- The implementation commit explicitly left planner work for independently parallelizing UNION ALL branches unfinished, and #136 noted that a newly reported post-commit crash was being discussed on the committers list rather than resolved in this thread.
Apr - May 2018 · 2 entries
- Adrien Nayrat reopened the thread's documentation work by reporting the missing Parallel Plans coverage in #137; Thomas Munro proposed a separate section in #139, and Robert Haas supplied it in #140.
- Thomas Munro's review in #141 led to the typo correction in #142, while Robert Haas deferred broader executor-node formatting consistency to another patch.
Jul - Aug 2018 · 2 entries
- After a further gap, Thomas Munro reviewed wording and the distinction between workers and the leader in #143, producing the final documentation revision in #144.
- Robert Haas committed #144 unchanged as e80f2b335e and confirmed its application to master and PostgreSQL 11 in #146; the thread ended with Adrien Nayrat's thanks in #147, with no further attached revision pending.