Re: JDBC error codes to detect duplicates?

Поиск
Список
Период
Сортировка
От David Wall
Тема Re: JDBC error codes to detect duplicates?
Дата
Msg-id 003701c0a29c$304b1a00$5a2b7ad8@expertrade.com
обсуждение исходный текст
Ответ на JDBC error codes to detect duplicates?  ("David Wall" <d.wall@computer.org>)
Ответы Re: JDBC error codes to detect duplicates?
Список pgsql-interfaces
> >AFAIK clean implementation of such feature is not possible because
backend
> >protocol does not have error codes (only error messages)
>
> Thats correct. It's also not practical to get the driver to translate
> because the format of the messages can change between releases as well.

Practically speaking, how often do the messages really change between
releases?  It seems that we could create a pluggable translator that would
work based on the release version.  If the messages change too frequently,
then something's seriously wrong with Postgresql server since the main
sql-portion of the system has been in place and there aren't too many things
a program really needs to detect about a database (missing row, duplicate
key, constraint violation, transaction error, deadlock detected, etc.).

David



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

Предыдущее
От: Peter Mount
Дата:
Сообщение: Re: JDBC error codes to detect duplicates?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: JDBC error codes to detect duplicates?