Re: [HACKERS] plperl intial pass

From: Mark Hollomon <mhh(at)mindspring(dot)com>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] plperl intial pass
Date: 1999-07-25 16:08:51
Message-ID: 19990725120851.A944@mars.mindspring.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jul 24, 1999 at 10:26:33PM +0400, Oleg Bartunov wrote:
> Great,
>
> just compiled and install but need to look at some examples :-)
> btw, here is a patch for createlang command to enable plperl
> I'm not sure about trusted field.

At this point it definitely should not be trusted. (Trust me).

How about the famous hello world:

create function hello () returns text as '
return "Hello world!";' language 'plperl';

or a quick sum:

create function sum2 (int4, int4) returns int4 as '
$_[0] + $_[1];' language 'plperl';

The args are in @_ (naturally). Tuples are passed as
hash references.

Access to SPI functionality is coming.

--
Mark Hollomon
mhh(at)mindspring(dot)com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jaromir Dolecek 1999-07-25 19:02:00 Re: [HACKERS] Problem with dlopen and PostgreSQL - load of file failed
Previous Message Tom Lane 1999-07-25 16:06:46 Re: [HACKERS] Problem with dlopen and PostgreSQL - load of file failed