Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: plperl.patch
Description: text/plain (6.4 KB)

Responses

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group