Ah, you are right, I looked in fe_memutils.c. Makes sense now, thanks!!
-Ursprüngliche Nachricht-
Von: Andres Freund
Gesendet: Donnerstag, 25. Juli 2019 22:31
An: Daniel Migowski
Cc: pgsql-hack...@postgresql.org
Betreff: Re: Question about MemoryContexts / possible memory leak in
Hi,
On 2019-07-25 20:21:06 +, Daniel Migowski wrote:
> When CachedPlanSource instances are created the field query_string is
> filled with pstrdup(query_string) in CreateCachedPlan,
> plancache.c:182, which is just a wrapper for strdup. According to the
> docs the returned pointer should be fr
Hello,
I am just starting to get my feet wet with PostgreSQL development and am
starting to understand the source, so please be kind 😊. I am working on the
REL_11_4 tag.
When CachedPlanSource instances are created the field query_string is filled
with pstrdup(query_string) in CreateCachedPlan,