Re: Upgrading the backend's error-message infrastructure

Поиск
Список
Период
Сортировка
От Larry Rosenman
Тема Re: Upgrading the backend's error-message infrastructure
Дата
Msg-id 59370000.1047610861@lerlaptop.lerctr.org
обсуждение исходный текст
Ответ на Re: Upgrading the backend's error-message infrastructure  (Neil Conway <neilc@samurai.com>)
Список pgsql-hackers

--On Thursday, March 13, 2003 21:58:21 -0500 Neil Conway 
<neilc@samurai.com> wrote:

> On Thu, 2003-03-13 at 21:48, Larry Rosenman wrote:
>> > Is there any benefit to having this over just including an index of
>> > error codes in the documentation?
>
>> yes, it makes it script-able
>
> What need would you have for it to be script-able? The backend will
> return the error text whenever it returns an error code -- in what
> situation would a client app have the error code but not the error
> message as well?
PHP, returning just the code to a user, and wanting to, later, return the 
full text
in a log-analysis, just as one example.
>
>> and probably more up to date than documentation....
>
> The way to fix that is to keep the documentation up to date, not invent
> pseudo-documentation.
machine readable Error messages and Codes are ALWAYS a good thing, IMNSHO.


>
> Cheers,
>
> Neil
>
> --
> Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC
>
>



-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749





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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Upgrading the backend's error-message infrastructure
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: Hrm. interval() function?