pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank G Hahn <efgeho@cs.auc.dk>
To: p.lam@altavista.net
Cc: pgsql-sql@postgresql.org
Subject: Re: Pg/PLSQL Errors!!
Date: Tue, 30 May 2000 19:01:08 +0200 (MET DST)
Message-ID: <Pine.GSO.4.21.0005301859470.3719-100000@borg.cs.auc.dk> (raw)
In-Reply-To: <000530123634BP.00589@weba1.iname.net>

Hi

You need to make the call_handler and create the language plpgsql.
Assuming postgres is installed in /usr/local/pgsql

Example:
-- Setup -- define the languages and the associated handlers
CREATE FUNCTION plpgsql_call_handler () RETURNS OPAQUE AS
  '/usr/local/pgsql/lib/plpgsql.so' LANGUAGE 'C';

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

On Tue, 30 May 2000 p.lam@altavista.net wrote:

> I am running PostgreSQL 6.5.3 on RedHat Linux 6.1 on a PC.
> I am trying to use Pg/PLSQL.
> 
> I even tried being conservative enough to copy the example code from
> http://www.postgresql.org/docs/user/c40874340.htm as follows:
> CREATE FUNCTION add_one (int4) RETURNS int4 AS '
>     BEGIN
>         RETURN $1 + 1;
>     END;
> ' LANGUAGE 'plpgsql';
> 
> 
> though, even that results in "ERROR:  Unrecognized language specified in a CREATE FUNCTION: 'pl-pgsql'.  Recognized languages are sql, C, internal and
> the created procedural languages."
> 
> I have tried variants including PLSQL,PG/PLSQL,PL/SQL,PGSQL  and even 'internal
> procedural language(s)' and 'created procedural language(s)' though with the same error.
> 
> Does anyone know of the name of the postgreSQL's procedural language of form like
> CREATE function funcName(arguments) returns returntype AS 'BEGIN
> statement block END;' LANGUAGE '??????';
> 
> Many Thanks!
> 
> 
> 
> ----------------------------------------------------------------
> Get your free email from AltaVista at http://altavista.iname.com
> 




view thread (7+ messages)  latest in thread

Message-ID: <Pine.GSO.4.21.0005301859470.3719-100000@borg.cs.auc.dk>
Permalink:  ../Pine.GSO.4.21.0005301859470.3719-100000@borg.cs.auc.dk/
Also on:    postgresql.org/message-id/Pine.GSO.4.21.0005301859470.3719-100000@borg.cs.auc.dk

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: efgeho@cs.auc.dk, p.lam@altavista.net
  Subject: Re: Pg/PLSQL Errors!!
  In-Reply-To: <Pine.GSO.4.21.0005301859470.3719-100000@borg.cs.auc.dk>
  References: <000530123634BP.00589@weba1.iname.net> <Pine.GSO.4.21.0005301859470.3719-100000@borg.cs.auc.dk>

* 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