Re: not logging caught exceptions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: not logging caught exceptions
Дата
Msg-id 5834.1257986733@sss.pgh.pa.us
обсуждение исходный текст
Ответ на not logging caught exceptions  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: not logging caught exceptions
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Is it at all reasonable to try to create some mechanism so that
> exceptions (elog) that are caught and not rethrown do not end up in the
> log?  For example, when you write code that does something like

> try
>     insert
> catch unique_constraint_violation
>     update
> end try

> this will end up cluttering the logs with all the constraint violation
> messages.

Really?  It's not supposed to.
        regards, tom lane


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

Предыдущее
От: Joachim Wieland
Дата:
Сообщение: Re: Listen / Notify rewrite
Следующее
От: Emmanuel Cecchet
Дата:
Сообщение: Re: Partitioning option for COPY