From: Richard Huxton <dev@archonet.com>
To: Bruce Young <hbrucey@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: language "plpgsql" does not exist
Date: Fri, 23 May 2003 11:26:31 +0100
Message-ID: <200305231126.31947.dev@archonet.com> (raw)
In-Reply-To: <20030523064831.64448.qmail@web10403.mail.yahoo.com>
References: <20030523064831.64448.qmail@web10403.mail.yahoo.com>
On Friday 23 May 2003 7:48 am, 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
You need to do a "CREATE LANGUAGE" or use the createlang command-line tool to
enable it in your database:
createlang plpgsql mydatabase
--
Richard Huxton
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: dev@archonet.com, hbrucey@yahoo.com
Subject: Re: language "plpgsql" does not exist
In-Reply-To: <200305231126.31947.dev@archonet.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