Re: execution of prepared statements leaks memory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitry Karasik <dmitry(at)karasik(dot)eu(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: execution of prepared statements leaks memory
Date: 2005-09-28 22:07:28
Message-ID: 5351.1127945248@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dmitry Karasik <dmitry(at)karasik(dot)eu(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tony Caduto 2005-09-28 22:07:40 Re: Found small issue with OUT params
Previous Message Neil Conway 2005-09-28 22:07:02 Re: Open items list for 8.1