Re: How to silence constraint violation logging for an INSERT

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: How to silence constraint violation logging for an INSERT
Дата
Msg-id 20110415163038.GL32948@shinkuro.com
обсуждение исходный текст
Ответ на How to silence constraint violation logging for an INSERT  (Paul Millar <paul.millar@desy.de>)
Список pgsql-general
On Fri, Apr 15, 2011 at 05:55:07PM +0200, Paul Millar wrote:
>
>     ERROR:  duplicate key value violates unique constraint [..]
>
> The log files may contain many such messages, depending on the usage-pattern
> of the end-user.  Including all these messages in the log file is distracting.
>
> The question is: can we suppress the logging of these message .. but allow
> other error messages to be logged normally?

No, but I should think grep -v is your friend here.

A

--
Andrew Sullivan
ajs@crankycanuck.ca

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

Предыдущее
От: salah jubeh
Дата:
Сообщение: Re: correlated query as a column and where clause
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: How to silence constraint violation logging for an INSERT