Re: plperl features

From: Sergej Sergeev <sergej(at)commandprompt(dot)com>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: plperl features
Date: 2004-09-29 17:03:39
Message-ID: 415AEAEB.8050600@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Alvaro Herrera wrote:

>On Wed, Sep 29, 2004 at 07:13:47PM +0300, Sergej Sergeev wrote:
>
>
>>Patch provide support for array type and pseudo type
>>(anyelement, anyarray) for function parameters and result.
>>for example:
>>
>>CREATE FUNCTION add_three_values(anyelement, anyelement, anyelement)
>>RETURNS anyelement AS '
>>return $_[0]+$_[1]+$_[2];
>>' LANGUAGE plperl;
>>
>>CREATE FUNCTION make_array(anyelement, anyelement, anyelement) RETURNS
>>anyarray AS '
>>return [$_[0], $_[1], $_[2]];
>>' LANGUAGE plperl;
>>
>>Comments?
>>
>>
>
>What happens if you feed other pseudotypes, like cstring or
>language_handler? Shouldn't that be disallowed or something?
>
>
>
Other pseudo-types are disallowed (no-change)

---
g.gRay: PL/perl, PL/PHP ;)

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-09-29 17:10:56 Re: plperl features
Previous Message Tom Lane 2004-09-29 17:03:05 Re: plperl features