Re: plperl arginfo - Mailing list pgsql-hackers

From Tom Lane
Subject Re: plperl arginfo
Date
Msg-id 20300.1288283668@sss.pgh.pa.us
Whole thread Raw
In response to Re: plperl arginfo  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: plperl arginfo
Re: plperl arginfo
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> On 10/28/2010 11:54 AM, Pavel Stehule wrote:
>> Alternatively, maybe the feature could be exposed in a way where you
>> don't actually calculate the values unless requested, ie provide some
>> sort of inquiry function instead of always precomputing a hash.
>> +1 .. some like get_function_info()

> Yeah, that looks doable.

BTW, maybe we could have the best of both worlds?  Dunno about Perl,
but in some languages it would be possible to instantiate the hash
only if it's actually touched.  Passing the data as a hash definitely
seems to fit with the spirit of things otherwise, so as long as it
didn't cost cycles when not needed, I'd be in favor of that API.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: Composite Types and Function Parameters
Next
From: Pavel Stehule
Date:
Subject: Re: plperl arginfo