Re: Optimize PL/Perl function argument passing [PATCH] - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Optimize PL/Perl function argument passing [PATCH]
Date
Msg-id 1628317A-EECB-475E-B63B-AFE2E72AB6C3@kineticode.com
Whole thread Raw
In response to Re: Optimize PL/Perl function argument passing [PATCH]  (Tim Bunce <Tim.Bunce@pobox.com>)
Responses Re: Optimize PL/Perl function argument passing [PATCH]
List pgsql-hackers
On Dec 8, 2010, at 9:14 AM, Tim Bunce wrote:

>> Do you have any more improvements in the pipeline?
>
> I'd like to add $arrayref = decode_array_literal('{2,3}') and
> maybe $hashref = decode_hstore_literal('x=>1, y=>2').
> I don't know how much works would be involved in those though.

Those would be handy, but for arrays, at least, I'd rather have a GUC to turn on so that arrays are passed to PL/perl
functionsas array references. 

> Another possible improvement would be rewriting encode_array_literal()
> in C, so returning arrays would be much faster.

+1

Best,

David



pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: plperlu problem with utf8
Next
From: Tom Lane
Date:
Subject: Re: Review: Extensions Patch