model-writtenrun 4586 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tatsuya Kawata proposed Function Scan memory/disk reporting in #1, summing its functions' tuplestore sizes and initially reporting only statistics surviving until EXPLAIN.
- Shashishekar Hullahally Anantharamu tested the initial patch across memory and disk storage, multiple functions, empty results, ordinality, and user-defined functions, reporting successful regression tests and no correctness issue in #2.
- David Rowley demonstrated that reversing parameter order changed the reported maximum in #7; Tatsuya explained why reusing tuplestores would affect the SRF calling convention and instead supplied saved rescan statistics in #9, leaving reuse optimizations separate.
- David's test review in #10 led to smaller spill tests in #11, where Tatsuya also demonstrated that parallel-worker execution lost the storage output; David then requested worker instrumentation in #12.
- Yash Jadhav explored tuplestore reuse in #14, and David supported treating that possible performance improvement as a separate change in #15; no reuse implementation landed in this thread.
- Tatsuya merged the series and added shared-memory reporting for parallel workers in #16, collecting statistics immediately after tuplestore creation and removing the tests' parallel-execution restriction.
- David showed that summing independent per-function maxima overstated simultaneous usage in #17; Tatsuya corrected the calculation to the peak simultaneous total and retained any disk spill in #18.
- David supplied #19 to move statistics collection out of FunctionNext(); Tatsuya incorporated it into #20, corrected omission of unchanged functions during rescans, and restored test sizes needed to spill on builds without assertions.
- David squashed both patches from #20 into edbb1d2dcb with light comment, formatting, and array-annotation edits, announcing the push in #21; Tatsuya acknowledged completion in #22, leaving the reporting feature fully landed.