Re: error codes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: error codes
Дата
Msg-id 16462.1026935876@sss.pgh.pa.us
обсуждение исходный текст
Ответ на error codes  (nconway@klamath.dyndns.org (Neil Conway))
Ответы Re: error codes  (nconway@klamath.dyndns.org (Neil Conway))
Список pgsql-hackers
nconway@klamath.dyndns.org (Neil Conway) writes:
> Should every elog() have an error code?

I believe we decided that it'd be okay to use one or two codes defined
like "internal error", "corrupted data", etc for all the elogs that are
not-supposed-to-happen conditions.  What error codes are really for is
distinguishing different kinds of user mistakes, and so that's where
you need specificness.

> How should the backend code signal an error with an error number?

Please read some of the archived discussions about this.  All the points
you mention have been brought up before.
        regards, tom lane


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

Предыдущее
От: "Eric Redmond"
Дата:
Сообщение: GiST Indexing
Следующее
От: nconway@klamath.dyndns.org (Neil Conway)
Дата:
Сообщение: Re: error codes