Re: Convert pltcl from strings to objects

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Victor Wagner <vitus(at)wagner(dot)pp(dot)ru>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Convert pltcl from strings to objects
Date: 2016-02-29 15:57:45
Message-ID: 12108.1456761465@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Catalin Iacob 2016-02-29 16:42:19 Re: proposal: PL/Pythonu - function ereport
Previous Message Tom Lane 2016-02-29 15:49:19 Re: Typo fix