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

From A.Bhuvaneswaran
Subject Re: language "plpgsql" does not exist
Date
Msg-id Pine.LNX.4.44.0305231756160.2714-100000@Bhuvan.bksys.co.in
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

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

regards,
bhuvaneswaran



pgsql-sql by date:

Previous
From: "Victor Yegorov"
Date:
Subject: Re: language "plpgsql" does not exist
Next
From: Jan Wieck
Date:
Subject: Re: see toast table