Re: language "plpgsql" does not exist

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Cc: hbrucey(at)yahoo(dot)com
Subject: Re: language "plpgsql" does not exist
Date: 2003-05-23 11:28:10
Message-ID: 3ECE05CA.E7CD433D@rodos.fzk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

RTFM and refer to the SQL Command CREATE LANGUAGE.
Regards, Christoph

Browse pgsql-sql by date

  From Date Subject
Next Message Victor Yegorov 2003-05-23 11:32:43 Re: language "plpgsql" does not exist
Previous Message Christoph Haller 2003-05-23 11:24:17 Re: Inquiry From Form [pgsql]