Re: language "plpgsql" does not exist

From: "Victor Yegorov" <viktors(dot)jegorovs(at)nordlb(dot)lv>
To: Bruce Young <hbrucey(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: language "plpgsql" does not exist
Date: 2003-05-23 11:32:43
Message-ID: 20030523113243.GD15931@nordlb.lv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

* Bruce Young <hbrucey(at)yahoo(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message A.Bhuvaneswaran 2003-05-23 12:27:27 Re: language "plpgsql" does not exist
Previous Message Christoph Haller 2003-05-23 11:28:10 Re: language "plpgsql" does not exist