Re: plperl message style on newly added messages

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: plperl message style on newly added messages
Дата
Msg-id 603c8f071002150710o6bd7e23eya42ffedfbf516363@mail.gmail.com
обсуждение исходный текст
Ответ на plperl message style on newly added messages  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: plperl message style on newly added messages  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Feb 15, 2010 at 10:02 AM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> I notice that the new plperl error messages are somewhat out of line of
> our usual style:
>
>            ereport(ERROR,
>                    (errcode(ERRCODE_INTERNAL_ERROR),
>                        errmsg("while executing utf8fix"),
>                        errdetail("%s", strip_trailing_ws(SvPV_nolen(ERRSV))) ));
>
> I think the errdetail field should really be errmsg, and the errdetail
> should be errcontext.
>
> There are several messages like this.
>
> Should this be fixed?

Yes.

...Robert


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: TCP keepalive support for libpq
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump sort order for functions