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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: arrays as pl/perl input arguments [PATCH]
Дата
Msg-id 9276.1294895567@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: arrays as pl/perl input arguments [PATCH]  ("David E. Wheeler" <david@kineticode.com>)
Ответы Re: arrays as pl/perl input arguments [PATCH]  (Alex Hunsaker <badalex@gmail.com>)
Список pgsql-hackers
"David E. Wheeler" <david@kineticode.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: pg_ctl failover Re: Latches, signals, and waiting
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql crashes on encoding mismatch