| From: | Ian Harding <iharding(at)pakrat(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Problem with PL/pgSQL |
| Date: | 2001-02-25 03:06:45 |
| Message-ID: | 3A9876C5.A4902DB3@pakrat.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hans-Jürgen Schönig wrote:
> What is wrong with the following function?
>
> CREATE FUNCTION logfunc2 (text) RETURNS int AS '
> DECLARE
> text ALIAS FOR $1;
> BEGIN
> SELECT length(text);
> RETURN ''3'';
> END;
> ' LANGUAGE 'plpgsql';
>
> I get the following error:
>
> ERROR: Unrecognized language specified in a CREATE FUNCTION: 'plpgsql'.
>
> Recognized languages are sql, C, internal, and created
> procedural languages.
>
> According to my docs "plpgsql" should be ok.
>
> Hans
plpgsql is not installed by default.
createlang 'plpgsql'
from the command line should to the trick.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mitch Vincent | 2001-02-25 03:47:36 | Re: Problem with PL/pgSQL |
| Previous Message | Matt Beauregard | 2001-02-25 01:45:06 | Help with database locking |