Re: possible memory leak with SRFs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: possible memory leak with SRFs
Date
Msg-id 16217.1273156029@sss.pgh.pa.us
Whole thread Raw
In response to Re: possible memory leak with SRFs  (Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>)
Responses Re: possible memory leak with SRFs
List pgsql-hackers
Nikhil Sontakke <nikhil.sontakke@enterprisedb.com> writes:
> Can someone please explain why we do not reset the expression context
> if an SRF is involved during execution?

Considersrf(foo(col))
where foo returns a pass-by-reference datatype.  Your proposed patch
would cut the knees out from under argument values that the SRF could
reasonably expect to still be there on subsequent calls.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: max_standby_delay considered harmful
Next
From: Tom Lane
Date:
Subject: Re: Partitioning/inherited tables vs FKs