Problem with PL/pgSQL - Mailing list pgsql-general

From Hans-Jürgen Schönig
Subject Problem with PL/pgSQL
Date
Msg-id 3A97CCE7.E28F207A@cybertec.at
Whole thread Raw
Responses Re: Problem with PL/pgSQL  ("Eric G. Miller" <egm2@jps.net>)
Re: Problem with PL/pgSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
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


pgsql-general by date:

Previous
From: "PHPBeginner.com"
Date:
Subject: RE: [PHP] International support
Next
From: "Mitch Vincent"
Date:
Subject: Re: Problem with PL/pgSQL