plperl features

From: Sergej Sergeev <sergej(at)commandprompt(dot)com>
To: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: plperl features
Date: 2004-09-29 16:13:47
Message-ID: 415ADF3B.7000405@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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?

--ggRay

Attachment Content-Type Size
plperl.patch text/plain 6.4 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-09-29 16:18:53 Re: FAQ translation in farsi
Previous Message Tom Lane 2004-09-29 15:34:31 Re: new target for contrib/Makefile