Re: Do we need "Diagnostics" sections of SQL command reference pages?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Do we need "Diagnostics" sections of SQL command reference pages?
Дата
Msg-id 14583.1062624669@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Do we need "Diagnostics" sections of SQL command reference pages?  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-docs
Josh Berkus <josh@agliodbs.com> writes:
> I agree that we don't need descriptions of the meaning of each error message
> in the command documentation.

> However, the listing of potential error messages is *very* useful to
> application coders for doing automated handling of errors.   Since we are now
> supporting SQLSTATE responses, perhaps we could have error code ranges for
> the commands?     Or is that totally unreasonable?

It seems completely impractical to guarantee that any particular command
can produce only some-small-subset of all the possible errors.  There
are too many layers of code involved in handling any SQL command.

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Do we need "Diagnostics" sections of SQL command reference pages?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: German FAQ update