Re: arrays as pl/perl input arguments [PATCH]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: Alexey Klyukin <alexk(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: arrays as pl/perl input arguments [PATCH]
Date: 2011-01-13 05:12:47
Message-ID: 9276.1294895567@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"David E. Wheeler" <david(at)kineticode(dot)com> writes:
> 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 would be that it would
> require both conversion to a string format and to a perl reference,
> performing unnecessary actions during every time arrays are passed to a
> pl/perl function.

I had supposed that it would be possible to do the string conversion
lazily, ie, only if the string value was actually demanded.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-01-13 05:22:32 Re: psql crashes on encoding mismatch
Previous Message Fujii Masao 2011-01-13 05:10:26 Re: pg_ctl failover Re: Latches, signals, and waiting