Re: not logging caught exceptions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: not logging caught exceptions
Date
Msg-id 5834.1257986733@sss.pgh.pa.us
Whole thread Raw
In response to not logging caught exceptions  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: not logging caught exceptions
List 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 by date:

Previous
From: Joachim Wieland
Date:
Subject: Re: Listen / Notify rewrite
Next
From: Emmanuel Cecchet
Date:
Subject: Re: Partitioning option for COPY