Re: the case for machine-readable error fields

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: the case for machine-readable error fields
Дата
Msg-id 26742.1249496955@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: the case for machine-readable error fields  (Sam Mason <sam@samason.me.uk>)
Список pgsql-hackers
Sam Mason <sam@samason.me.uk> writes:
> On Wed, Aug 05, 2009 at 12:41:30PM -0500, Kevin Grittner wrote:
>> From the table, the 23xxx series is for integrity constraint
>> violations, but they appear not to have gotten too specific about
>> breaking that down; thereby leaving it as an implementation choice:

> Yes; but somewhere along the line we've got exactly the same integrity
> constraint violation sqlcodes as DB2 (and Derby, but that's not very
> surprising as they're both IBM).  Can't find anybody else trying very
> hard though.

BTW, that's because we deliberately borrowed as much as we could from
DB2.  See the notes near the top of errcodes.h.  As you say, nobody
else seems to care much, so that was the only precedent we could find.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: the case for machine-readable error fields
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: GRANT ON ALL IN schema