Re: elog() patch

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: elog() patch
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA41EB532@m0114.s-mxs.net
обсуждение исходный текст
Ответ на elog() patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: elog() patch  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter writes:
> > SQL92 has WARNING, would that be a suitable addition to NOTICE ?
> > INFO would not be added since it is like old NOTICE which would stay.
> > So, instead of introducing a lighter level we would introduce a
> > stronger level. (WARNING more important than NOTICE)
> > If we change, we might as well adopt some more SQL'ism.
>
> At the client side SQL knows two levels, namely a "completion condition"
> and an "exception condition".  In the PostgreSQL client protocol, these
> are distinguished as N and E message packets.  The tags of the messages
> are irrelevant, they just serve as a guide to the user reading the
> message.

I am referring to "completion condition" messages according to SQLSTATE:

00xxx:    Success
01xxx:    Success with Warning
02xxx:    Success but no rows found
03 and > :    Failure

I see that there is no notion of INFO, thus I agree that INFO should not be
something normally sent to the user. INFO could be the first DEBUG Level,
or completely skipped.

I think that LOG would be more worth the trouble than INFO.

Andreas


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: elog() patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: elog() patch