Re: plperl better array support

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: plperl better array support
Дата
Msg-id 42B704B4.6070501@dunslane.net
обсуждение исходный текст
Ответ на Re: plperl better array support  (David Fetter <david@fetter.org>)
Список pgsql-patches

David Fetter wrote:

>In src/backend/utils/adt/arrayfuncs.c there are direct
>array-manipulation functions.
>

And in other places - I had already found that stuff :-) . But a worked
example would help. If it's not available I'll muddle through some time.


> In the perlapi docs for perl, there are
>ways to manipulate arrays directly.
>

The patch is already using them. In fact, you can't delve even mildly
into plperl.c without having the perlapi docs close at hand.

> It should be possible to go
>between perl arrays and postgresql arrays this way, except...perl
>arrays can contain undef, which usually translates as NULL.  Would it
>be easier to add NULL support to postgresql arrays than to handle
>undefs in perl arrays automagically?
>
>
>
>

We should have NULL support in arrays. In the absence of that I'm not
particularly inclined to make special provsion for undef in an array.

cheers

andrew

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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: plperl better array support
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: WAL bypass for CTAS