model-writtenrun 1091 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Geier proposed reporting each parallel bitmap heap scan worker’s exact and lossy heap-block counts because leader-only output had misled query analysis, initially storing snapshot data and worker statistics in one variable-length allocation #1.
- Geier refreshed the patch and changed its instrumentation counters to long #2, after which Dmitry Dolgov questioned the shared-memory layout and alignment #3; Geier considered fixed maximum-worker allocation #4, but Dolgov objected to its memory cost and preferred improving the offset-based approach #5.
- Michael Christofides questioned whether worker heap-block counts were appropriate #6, Robert Haas explained that heap scanning is divided among workers and criticized the combined storage name #7, and Dilip Kumar requested consistent leader and worker formatting for zero counters #8.
- Tomas Vondra tested the patch and raised concerns about variable-length storage, missing combined totals, and inconsistent-looking EXPLAIN option behavior #9.
- After snapshot storage was removed independently, Heikki Linnakangas revived the patch with a separate instrumentation structure in the same DSM chunk #11, and Melanie Plageman endorsed that representation #12.
- Donghang Lin rebased the patch and showed that Sort, Memoize, and HashAggregate also report separate worker statistics #14; Melanie Plageman then demonstrated that rescans lost previous worker counts #15, leading Lin to replace overwriting with accumulation #16.
- Alena Rybakina supplied another rebase and proposed additional refactoring #17, while Masahiro Ikeda reviewed formatting consistency and whether worker-state checks should suppress worker output #18.
- David Rowley prepared a full patch plus cleanup fixup, aligned worker formatting with leader formatting, clarified rescan accumulation, and registered the new typedefs; he incorporated selected refactoring suggestions but rejected a pointer adjustment that would point beyond the allocation #20.
- Rowley separately identified that long counters can overflow on MSVC #21 and reproduced missing heap-block output with a query taking about fifteen minutes #22.
- Rowley committed the counter-width fix as 7340d9362a directly from that discussion, widening counters to uint64 and updating EXPLAIN formatting; he landed it first because the feature’s zero checks assumed nonnegative counters #23.
- Rowley posted the consolidated feature patch on top of the counter-width fix and compared its output with Sort and Memoize #24; further analysis supported retaining separate leader and worker counts rather than aggregating them #25.
- The feature landed as 5a1e6df3b8 with the exact code from #24, and Rowley subsequently explained that Parallel Hash differs because workers build a shared hash table #26.
- In April 2026, Tomas Vondra reopened the issue after finding that non-parallel-aware bitmap scans inside parallel queries still lacked instrumentation, pointing to his proposed fix in another thread #27.
- Melanie Plageman supplied a less invasive alternative that preserves a uniform DSM layout while allocating instrumentation for non-parallel-aware scans #28, and Vondra endorsed the approach #29.
- At the end of the thread, the original reporting feature and counter-width fix had landed, but the non-parallel-aware follow-up remained under discussion; David Geier questioned whether separate instrumentation-estimation routines would better match other scans #30.