Re: arrays as pl/perl input arguments [PATCH] - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: arrays as pl/perl input arguments [PATCH]
Date
Msg-id C131AD39-1B29-4B35-A89B-92E5F4944119@kineticode.com
Whole thread Raw
In response to Re: arrays as pl/perl input arguments [PATCH]  (Alexey Klyukin <alexk@commandprompt.com>)
Responses Re: arrays as pl/perl input arguments [PATCH]  (Alexey Klyukin <alexk@commandprompt.com>)
Re: arrays as pl/perl input arguments [PATCH]  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Jan 12, 2011, at 5:14 AM, Alexey Klyukin wrote:

> You mean packing both a string representation and a reference to a single SV * value?

Dunno, I'm not a guts guy.

> I haven't considered that (lack of extensive perlgus-foo) although I think that's an interesting idea. One drawback
wouldbe that it would require both conversion to a string format and to a perl reference, performing unnecessary
actionsduring every time arrays are passed to a pl/perl function. If there is a strong dislike of the proposed
'compatibility'GUC option - I think I can change the existing patch to incorporate array string representation into the
reference-holdingSV quite easily. 

Andrew's objections have merit. So perhaps just add this patch to the commit fest as is?

Best,

David

pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Compatibility GUC for serializable
Next
From: "David E. Wheeler"
Date:
Subject: Re: WIP: Range Types