Re: Convert pltcl from strings to objects - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Convert pltcl from strings to objects
Date
Msg-id 12108.1456761465@sss.pgh.pa.us
Whole thread Raw
In response to Re: Convert pltcl from strings to objects  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Responses Re: Convert pltcl from strings to objects
List pgsql-hackers
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> On 2/25/16 9:30 AM, Alvaro Herrera wrote:
>> Refcounting the prodesc would let it live until the cursor's closed,
>> then free it.

> I'm also not sure how the reference would get decremented... via 
> ResourceOwner somehow?

plpgsql already has a similar mechanism (see PLpgSQL_function.use_count)
which you could probably copy.  But I'd advise that this is a separate
matter to be addressed in a separate patch; it has little to do with the
nominal subject matter of this patch.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Typo fix
Next
From: Catalin Iacob
Date:
Subject: Re: proposal: PL/Pythonu - function ereport