Trapping errors from pl/perl (trigger) functions

From: Wiebe Cazemier <halfgaar(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Trapping errors from pl/perl (trigger) functions
Date: 2007-06-30 20:30:32
Message-ID: f66eh8$vda$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have a pl/perl trigger function which can give an error, and I would like to
catch it in a pl/pgsql function, but I can't seem to trap it.

Is it possible to catch errors generated pl/perl functions in a BEGIN ...
EXCEPTION WHEN ... END block? Or perhaps in some other way?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Postgres User 2007-06-30 21:14:18 Do Postgres exceptions rise up the stack?
Previous Message Pavel Stehule 2007-06-30 19:17:56 Re: greatest/least semantics different between oracle and postgres