model-writtenrun 3664 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ashutosh Bapat proposed reporting planner memory in EXPLAIN after using the measurement to investigate partitionwise joins and detect increased memory consumption; the initial patch measured the change in memory still used before and after planning #1.
- David Rowley argued that retained allocations also mattered because end-of-planning usage could hide temporary allocations and allocator inefficiencies, while Andrey Lepikhov initially preferred the used-memory metric and reported successful tests #4 #7 #9.
- Ashutosh agreed to report both used and allocated memory, but declined progress-style tracking because its overhead and sampling limitations seemed disproportionate to typical planning durations #11 #12.
- Jian He tested cached prepared statements and questioned their zero-memory result; Ashutosh explained that no new planning was required and posted a three-patch series adding allocated-memory reporting and a separate planner context to isolate measurements from earlier activity #13 #14.
- Andrey demonstrated the feature's usefulness by finding redundant planner memory use, while Andy Fan requested clearer motivation and terminology; Ashutosh accepted the explanatory changes and kept parser-memory measurement outside this work's scope #15 #16 #17 #18.
- After an October rebase, Alvaro Herrera reviewed the series, supplied helper and structure relocation fixups, requested a single patch, and proposed a separate MEMORY option; Ashutosh first squashed the series and incorporated the fixups while retaining SUMMARY-controlled output #19 #20 #21.
- Alvaro and Andrey argued that ordinary EXPLAIN ANALYZE should not display planner memory by default, leading Ashutosh to add the explicit MEMORY option and tests; auto_explain support was deferred because it lacked the planner hook needed to collect these statistics #22 #23 #24.
- Following Jian's documentation concerns and Alvaro's simplification review, Ashutosh removed baseline sampling and the separate usage structure, sampled the dedicated context only after planning, and avoided all measurement setup when MEMORY was disabled, accepting the small inclusion of context overhead #25 #27 #29.
- Alvaro supplied further minor fixups and questioned the AllocSet assumption and EXPLAIN EXECUTE support; Ashutosh retained prepared-statement reporting after demonstrating useful custom-plan and cached-plan measurements, deferred generic context-type creation infrastructure, and incorporated the fixups #30 #31 #32.
- Alvaro proposed grouping memory with planning buffers, and Abhijit Menon-Sen offered an alternative flat layout; Ashutosh adopted the shared Planning group while leaving Planning Time unchanged to preserve compatibility #33 #34 #35 #36.
- Alvaro questioned an apparent missing Planning heading in the regression output, and Ashutosh explained that explain_filter() deliberately removed it; Alvaro accepted that explanation, and Ashutosh rebased and squashed the final submission #37 #38 #39 #40.
- Alvaro committed 5de890e361 from #40 after replacing the cross-function indentation bookkeeping with peek_buffer_usage(), adding an EXPLAIN EXECUTE test, and applying minor stylistic edits #41.
- Ashutosh reviewed the committed adjustments and approved them, and Alvaro acknowledged that review; the thread ended with the feature landed and no remaining patch series awaiting action #42 #43.