Re: Activation of plsql

From: Christopher Sawtell <csawtell(at)paradise(dot)net(dot)nz>
To: David Lizano <david(dot)lizano(at)izanet(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Activation of plsql
Date: 2001-08-03 09:41:40
Message-ID: 20010803094104.3F89C1F9DE9@deborah.paradise.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 03 Aug 2001 21:29, David Lizano wrote:
> Hi,
>
> How can I activate the plsql language from a SQL environment in PostgreSQL
> 7.1?
>
> I know the command line command "createlang", but I would like to use a SQL
> syntax. I have been trying with the SQL command "CREATE LANGUAGE", but I
> don't know how to do it.

CREATE FUNCTION "plpgsql_call_handler" () RETURNS opaque AS
'/opt/pgsql/lib/plpgsql.so' LANGUAGE 'C';
^^^^^^^^^^^^^
make sure you get this path correct.

CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER
"plpgsql_call_handler" LANCOMPILER 'PL/pgSQL';

have fun!

--
Sincerely etc.,

NAME Christopher Sawtell
CELL PHONE 021 257 4451
ICQ UIN 45863470
EMAIL csawtell @ paradise . net . nz
CNOTES ftp://ftp.funet.fi/pub/languages/C/tutorials/sawtell_C.tar.gz

-> Please refrain from using HTML or WORD attachments in e-mails to me <-

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bryan Buchanan 2001-08-03 09:54:55 Re: Knowing new item in table...
Previous Message Richard Huxton 2001-08-03 09:39:42 Re: where'd the spaces come from