Re: Status of plperl inter-sp calling - Mailing list pgsql-hackers

From Tim Bunce
Subject Re: Status of plperl inter-sp calling
Date
Msg-id 20100105213123.GJ2505@timac.local
Whole thread Raw
In response to Re: Status of plperl inter-sp calling  ("David E. Wheeler" <david@kineticode.com>)
List pgsql-hackers
On Tue, Jan 05, 2010 at 01:05:40PM -0800, David E. Wheeler wrote:
> On Jan 5, 2010, at 12:59 PM, Tim Bunce wrote:
> 
> > So you're suggesting SP::foo(...) _always_ executes foo(...) via bunch
> > of spi_* calls. Umm. I thought performance was a major driving factor.
> > Sounds like you're more keen on syntactic sugar.
> 
> I'm saying do both. Make the cached version the one that will be used
> most often, but make available a second version that doesn't cache so
> that you get the sugar and the polymorphic dispatch. Such would only
> have to be used in cases where there is more than one function that
> takes the same number of arguments. The rest of the time -- most of
> the time, that is -- one can use the cached version.

I think I have a best-of-both solution. E-mail to follow...

Tim.


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: true serializability and predicate locking
Next
From: Robert Haas
Date:
Subject: Re: Stats for inheritance trees