Re: language "plpgsql" does not exist

From: "A(dot)Bhuvaneswaran" <bhuvan(at)symonds(dot)net>
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 12:27:27
Message-ID: Pine.LNX.4.44.0305231756160.2714-100000@Bhuvan.bksys.co.in
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

The problem is, you have not installed the language 'plpgsql'. It can be
done using createlang command.

regards,
bhuvaneswaran

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 2003-05-23 12:51:38 Re: see toast table
Previous Message Victor Yegorov 2003-05-23 11:32:43 Re: language "plpgsql" does not exist