diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-08-02 19:44:10 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-08-02 21:59:46 -0400 |
commit | b102c8c4733cf76ff0635dc440ee8dd11487ed95 (patch) | |
tree | 5d4fab2ae6e17adda0e2c1dee696095955adcc17 /src/backend/port/sparc_solaris/git@kaiwu.me:public/postgresql | |
parent | 7f6ededa764b287ba593a2bb7fd566df8053213e (diff) | |
download | postgresql-b102c8c4733cf76ff0635dc440ee8dd11487ed95.tar.gz postgresql-b102c8c4733cf76ff0635dc440ee8dd11487ed95.zip |
Silence complaints about leaks in PlanCacheComputeResultDesc.
CompleteCachedPlan intentionally doesn't worry about small
leaks from PlanCacheComputeResultDesc. However, Valgrind
knows nothing of engineering tradeoffs and complains anyway.
Silence it by doing things the hard way if USE_VALGRIND.
I don't really love this patch, because it makes the handling
of plansource->resultDesc different from the handling of query
dependencies and search_path just above, which likewise are willing
to accept small leaks into the cached plan's context. However,
those cases aren't provoking Valgrind complaints. (Perhaps in a
CLOBBER_CACHE_ALWAYS build, they would?) For the moment, this
makes the src/pl/plpgsql tests leak-free according to Valgrind.
Author: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/285483.1746756246@sss.pgh.pa.us
Diffstat (limited to 'src/backend/port/sparc_solaris/git@kaiwu.me:public/postgresql')
0 files changed, 0 insertions, 0 deletions