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

From Bruce Momjian
Subject Re: Warning for missing createlang
Date
Msg-id 200309050401.h8541HZ29446@candle.pha.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  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
Bruce Momjian wrote:
> 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:
>
>     test=> CREATE FUNCTION xx() RETURNS INT AS '
>     test'> select 1'
>     test-> LANGUAGE 'plpgsql';
>     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.

OK, Peter and Tom don't like it.  :-(

How about this, that also suggests you mistyped the name:

>     HINT:  Perhaps you need to use 'createlang' to load the language into
>     the database, or you mistyped the language name.

                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: small typos
Next
From: Andriy Tkachuk
Date:
Subject: Re: doc patch - linux memory handling