pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Activation of plsql
2+ messages / 2 participants
[nested] [flat]

* Activation of plsql
@ 2001-08-03 09:29 David Lizano <david.lizano@izanet.com>
  2001-08-03 09:41 ` Re: Activation of plsql Christopher Sawtell <csawtell@paradise.net.nz>
  0 siblings, 1 reply; 2+ messages in thread

From: David Lizano @ 2001-08-03 09:29 UTC (permalink / raw)
  To: pgsql-sql

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.

Thanks.





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Activation of plsql
  2001-08-03 09:29 Activation of plsql David Lizano <david.lizano@izanet.com>
@ 2001-08-03 09:41 ` Christopher Sawtell <csawtell@paradise.net.nz>
  0 siblings, 0 replies; 2+ messages in thread

From: Christopher Sawtell @ 2001-08-03 09:41 UTC (permalink / raw)
  To: David Lizano <david.lizano@izanet.com>; 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 <-




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-08-03 09:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-08-03 09:29 Activation of plsql David Lizano <david.lizano@izanet.com>
2001-08-03 09:41 ` Christopher Sawtell <csawtell@paradise.net.nz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox