trap for any exception

From: "Sabin Coanda" <sabin(dot)coanda(at)deuromedia(dot)ro>
To: pgsql-sql(at)postgresql(dot)org
Subject: trap for any exception
Date: 2007-11-15 13:45:20
Message-ID: fhhihd$1h5j$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi there,

I'd like to build a PL/pgSQL function which is able to generic trap any
error, and interpret it.

I read 37.7.5. Trapping Errors, but the syntax requires to write explicitly
the exception condition, and not a generic one.

Is it possible to build a generic trap or do you know a workaround for that
?

TIA,
Sabin

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Sabin Coanda 2007-11-15 13:52:02 Re: trap for any exception
Previous Message Gregory Stark 2007-11-15 09:33:27 Re: postgres bogged down beyond tolerance