Re: execution of prepared statements leaks memory - Mailing list pgsql-hackers

From Tom Lane
Subject Re: execution of prepared statements leaks memory
Date
Msg-id 5351.1127945248@sss.pgh.pa.us
Whole thread Raw
In response to execution of prepared statements leaks memory  (Dmitry Karasik <dmitry@karasik.eu.org>)
List pgsql-hackers
Dmitry Karasik <dmitry@karasik.eu.org> writes:
> I'm not sure whether I've stumbled over a bug or a feature, so I'm
> curious if someone might explain that.

It's a bug --- _SPI_execute_plan isn't handling the possibility that
a utility command could create a tupletable that could be passed back
to the caller.  So the tuptable gets leaked.  I'll try to fix this
for 8.1, not sure if it'd be wise to try to back-patch.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Neil Conway
Date:
Subject: Re: Open items list for 8.1
Next
From: Tony Caduto
Date:
Subject: Re: Found small issue with OUT params