From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Bruce Young <hbrucey@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: language "plpgsql" does not exist
Date: Fri, 23 May 2003 13:43:09 -0200 (GMT+2)
Message-ID: <Pine.LNX.4.44.0305231333350.30269-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <20030523064831.64448.qmail@web10403.mail.yahoo.com>
On Thu, 22 May 2003, Bruce Young wrote:
> i am trying to create functions only to get the above error in return.
> what do i need to do to get PL/PGSQL functions working?
> example:
>
> CREATE FUNCTION logfunc1(text) RETURNS timestamp AS '
> DECLARE
> logtxt ALIAS FOR $1;
> BEGIN
> INSERT INTO logtable VALUES (logtxt, ''now'');
> RETURN ''now'';
> END;
> ' LANGUAGE plpgsql;
>
> # ERROR: language "plpgsql" does not exist
Do
CREATE FUNCTION plpgsql_call_handler () RETURNS language_handler
AS '/usr/local/pgsql/lib/plpgsql.so', 'plpgsql_call_handler'
LANGUAGE c;
CREATE TRUSTED PROCEDURAL LANGUAGE plpgsql HANDLER plpgsql_call_handler;
>
>
> any help appreciated
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
--
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-210-8981112
fax: +30-210-8981877
email: achill@matrix.gatewaynet.com
mantzios@softlab.ece.ntua.gr
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: achill@matrix.gatewaynet.com, hbrucey@yahoo.com
Subject: Re: language "plpgsql" does not exist
In-Reply-To: <Pine.LNX.4.44.0305231333350.30269-100000@matrix.gatewaynet.com>
References: <20030523064831.64448.qmail@web10403.mail.yahoo.com> <Pine.LNX.4.44.0305231333350.30269-100000@matrix.gatewaynet.com>
* 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