Re: Warning for missing createlang - Mailing list pgsql-patches

From Tom Lane
Subject Re: Warning for missing createlang
Date
Msg-id 19519.1062725336@sss.pgh.pa.us
Whole thread Raw
In response to Warning for missing createlang  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Warning for missing createlang  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I have written a patch to issue an hint if someone tries to create a
> function in a language that isn't loaded into the database:

>     ERROR:  language "plpgsql" does not exist
>     HINT:  Perhaps you need to use 'createlang' to load the language into
>     the database.

> I know Peter didn't like this idea in the past, but we are getting too
> many people who forget createlang, and with our new HINT tags, it seems
> appropriate.

I still agree with Peter's opinion ... this hint is fairly silly,
especially since it would pop out for simple misspellings of language
names.

            regards, tom lane

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: IPV4 addresses on IPV6 machines in pg_hba.conf
Next
From: Bruce Momjian
Date:
Subject: Re: Warning for missing createlang