| From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
|---|---|
| To: | David Fetter <david(at)fetter(dot)org> |
| Cc: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
| Subject: | Re: plperl better array support |
| Date: | 2005-06-20 18:02:28 |
| Message-ID: | 42B704B4.6070501@dunslane.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Treat | 2005-06-20 18:20:54 | Re: buildfarm notifications |
| Previous Message | David Fetter | 2005-06-20 17:41:31 | Re: plperl better array support |