Re: [PATCHES] Warning for missing createlang

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] Warning for missing createlang
Дата
Msg-id 9599.1062769961@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] Warning for missing createlang  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: [PATCHES] Warning for missing createlang  (Rod Taylor <rbt@rbt.ca>)
Re: [PATCHES] Warning for missing createlang  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Bruce Momjian wrote:
>>> HINT:  Perhaps you need to use 'createlang' to load the language into
>>> the database, or you mistyped the language name.

> Why not list out the languages we *do* know about, and tell them it's 
> not in the list? Or is that too much work?

Seems like it would clutter the error message without really addressing
Bruce's concern.  I doubt that seeing the list of available languages
would do much to jog a newbie's memory about needing to run createlang.

We could answer my objection about the hint popping out on misspelled
language names if the code were to arrange to put out the hint only when
the language name is one of "plpgsql", "pltcl", "pltclu", etc.  This
would have to use a hard-coded list of loadable language names, since
by definition looking in pg_language won't help.  It would be enough of
a maintenance PITA that I don't especially want to do it ... but it
would ensure that the hint is likely to be relevant.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Samuel A Horwitz
Дата:
Сообщение: AIX 4.2.1 CVS head and SSL
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: TCP/IP with 7.4 beta2 broken?