On Mon, 5 Oct 2026 at 03:52, Tatsuya Kawata <[email protected]> wrote: > 40708acd65 added memory/disk usage to EXPLAIN ANALYZE for Table Function > Scan nodes. However, when the node is rescanned with changed > parameters, ExecReScanTableFuncScan() calls tuplestore_end(), so the > statistics of the earlier rescans are lost and only those of the final > rescan are reported.
I made a very small change so we only call tuplestore_rescan() when the parameters don't change. The call to tuplestore_clear() rewinds the read pointers, so there's no point in calling tuplestore_rescan() after tuplestore_clear(). Pushed. Thanks. David
