Re: not logging caught exceptions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: not logging caught exceptions
Date: 2009-11-12 00:45:33
Message-ID: 5834.1257986733@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Emmanuel Cecchet 2009-11-12 00:53:58 Re: Partitioning option for COPY
Previous Message Itagaki Takahiro 2009-11-12 00:25:24 Re: Partitioning option for COPY