Re: Warning for missing createlang

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Warning for missing createlang
Дата
Msg-id 200309050133.h851XKm25574@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Warning for missing createlang  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> 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.

What can we do to help people remember they have forgotten to load the
language?  The post that question here too often.  I don't see any
problem with a hint that starts with "Perhaps".

--
  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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Warning for missing createlang
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: libpq with ssl under win32