Re: ERROR: Unrecognized language specified ...

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Kevin HaleBoyes <kcboyes(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: Unrecognized language specified ...
Date: 2001-10-13 01:34:48
Message-ID: 200110130134.f9D1Ymm22389@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I'm creating a function (for use in a trigger) from the example in the
> documentation and encountered an error. If I type the following at
> the psql prompt (database and user are opf):
>
> opf=> create function opf_user_fillin() returns opaque as '
> opf'> begin
> opf'> new.opf_user_id := nextval(opf_user_sequence);
> opf'> return new;
> opf'> end;
> opf'> '
> opf-> language 'plpgsql'
> opf-> ;
>
> I get the following error:
>
> ERROR: Unrecognized language specified in a CREATE FUNCTION: 'plpgsql'.
> Recognized languages are sql, C, internal and the created procedural languages.
>
> Can I enable the plpgsql language on my system? If so, how? If not,
> what are my options (ie, what do I have to do to get plpgsql support)?
>
> I'm pretty new to PostgreSQL but no stranger to compiling systems from source
> (or writing the source for that matter). I'm running a RedHat Linux 7.1 system
> with the PostgreSQL that comes with the OS.

Here is a classic case where we print an error message but don't give
the user enough information to find the solution. I have just applied a
patch to show the proper info:

test=> create function xx() returns integer as 'asdf' language 'asdf';
ERROR: Unrecognized language specified in a CREATE FUNCTION: 'asdf'.
Pre-installed languages are SQL, C, and internal.
Additional languages may be installed using 'createlang'.

If people find other messages that should point to solutions but don't,
please let us know.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message speedboy 2001-10-13 02:33:46 Re: what's going on with this list?
Previous Message Barry Lind 2001-10-13 01:30:02 Re: [GENERAL] Error messages