On Fri, 9 Oct 2026 at 08:00, Yash Jadhav <yash.jadhav8008@gmail.com> wrote:
> For now I understand that for each rerun, a new tuple store would be
> obtained along with new stats, and that it would mean changing srf
> calling convention in order for the swap to work, but that would mean
> a big change. I have also tried to understand the relevant code path.
>
> So I wanted to try if I could find a way to solve this, as a
> first-time contributor, I'd appreciate any feedback on whether my
> understanding is correct, and whether changing the calling convention
> is the only way here.
Switching to tuplestore_clear() is welcome for other reasons. There's
been no benchmarking done on this thread for it, but see the reported
performance gains mentioned in the commit message [1].
This may be an argument for doing the tuplestore_clear() change as a
separate commit.
David
[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=908a9686