Re: language "plpgsql" does not exist - Mailing list pgsql-sql

From Christoph Haller
Subject Re: language "plpgsql" does not exist
Date
Msg-id 3ECE05CA.E7CD433D@rodos.fzk.de
Whole thread Raw
In response to language "plpgsql" does not exist  (Bruce Young <hbrucey@yahoo.com>)
List 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





pgsql-sql by date:

Previous
From: Christoph Haller
Date:
Subject: Re: Inquiry From Form [pgsql]
Next
From: "Victor Yegorov"
Date:
Subject: Re: language "plpgsql" does not exist