Re: Verbosity of Function Return Type Checks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Verbosity of Function Return Type Checks
Дата
Msg-id 9950.1220572771@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Verbosity of Function Return Type Checks  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Verbosity of Function Return Type Checks
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> I wasn't able to run the tests in contrib, I don't know why, and I have
> to go out now.  I'll commit this tomorrow.

This is not ready to go: you've lost the ability to localize most of the
error message strings.  Also, "char *msg" should be "const char *msg"
if you're going to pass literal constants to it, and this gives me
the willies even though the passed-in strings are supposedly all fixed:    errmsg(msg),
Use    errmsg("%s", msg),
to be safe.

Actually, the entire concept of varying the main message to suit the
context exactly, while the detail messages are *not* changing, seems
pretty bogus...

Another problem with it is it's likely going to fail completely on
dropped columns (which will have atttypid = 0).
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Need more reviewers!
Следующее
От: Benedek László
Дата:
Сообщение: Re: pg_dump roles support