Re: error codes

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: error codes
Дата
Msg-id GNELIHDDFBOCMGBFGEFOOEDECDAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на error codes  (nconway@klamath.dyndns.org (Neil Conway))
Список pgsql-hackers
> Should every elog() have an error code? I'm not sure -- there are many
> elog() calls that will never been seen by the user, since the error
> they represent will be caught before control reaches the elog (e.g.
> parse errors, internal consistency checks, multiple elog(ERROR)
> for the same user error, etc.) Perhaps for those error messages
> that don't have numbers, we could just give them ERRNO_UNKNOWN or
> a similar constant.

It might be cool to a little command utility "pg_error" or whatever that you
pass an error code to and it prints out a very detailed description of the
problem...

Chris



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Planner very slow on same query to slightly different tables
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: CREATE CONVERSION mostly works now