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

From Victor Yegorov
Subject Re: language "plpgsql" does not exist
Date
Msg-id 20030523113243.GD15931@nordlb.lv
Whole thread Raw
In response to language "plpgsql" does not exist  (Bruce Young <hbrucey@yahoo.com>)
Responses Re: language "plpgsql" does not exist
List pgsql-sql
* Bruce Young <hbrucey@yahoo.com> [23.05.2003 14:29]:
> 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

issue the following command on console (comand interpreter):

$ createlang plpgsql <dbname>

-- 

Victor Yegorov


pgsql-sql by date:

Previous
From: Christoph Haller
Date:
Subject: Re: language "plpgsql" does not exist
Next
From: "A.Bhuvaneswaran"
Date:
Subject: Re: language "plpgsql" does not exist