pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Sawtell <csawtell@paradise.net.nz>
To: David Lizano <david.lizano@izanet.com>
To: pgsql-sql@postgresql.org
Subject: Re: Activation of plsql
Date: Fri, 3 Aug 2001 21:41:40 +1200
Message-ID: <20010803094104.3F89C1F9DE9@deborah.paradise.net.nz> (raw)
In-Reply-To: <4.3.2.7.0.20010803112453.00bffbc0@195.55.179.56>
References: <4.3.2.7.0.20010803112453.00bffbc0@195.55.179.56>

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 <-




view thread (2+ messages)

Message-ID: <20010803094104.3F89C1F9DE9@deborah.paradise.net.nz>
Permalink:  ../20010803094104.3F89C1F9DE9@deborah.paradise.net.nz/
Also on:    postgresql.org/message-id/20010803094104.3F89C1F9DE9@deborah.paradise.net.nz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: csawtell@paradise.net.nz, david.lizano@izanet.com
  Subject: Re: Activation of plsql
  In-Reply-To: <20010803094104.3F89C1F9DE9@deborah.paradise.net.nz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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