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

Re: plperl features

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Sergej Sergeev <sergej(at)commandprompt(dot)com>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: plperl features
Date: 2004-09-29 16:20:03
Message-ID: 20040929162003.GA8007@dcc.uchile.cl (view raw or flat)
Thread:
Lists: pgsql-patches
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?

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Java is clearly an example of a money oriented programming"  (A. Stepanov)


In response to

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2004-09-29 17:03:05
Subject: Re: plperl features
Previous:From: Bruce MomjianDate: 2004-09-29 16:18:53
Subject: Re: FAQ translation in farsi

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