Re: Exceptions in PL/Perl?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Jeff Boes <jeff(at)endpoint(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Exceptions in PL/Perl?
Date: 2005-08-11 14:43:04
Message-ID: 20050811144304.GA91822@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Aug 11, 2005 at 10:15:11AM -0400, Jeff Boes wrote:
> How does one raise an exception from a PL/Perl function? Specifically,
> this is a trigger function. Is it as simple as "die <msg>"?

Use elog:

http://www.postgresql.org/docs/8.0/static/plperl-database.html

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2005-08-11 14:57:24 Re: Exceptions in PL/Perl?
Previous Message Matt Miller 2005-08-11 14:21:19 Re: [GENERAL] Testing of MVCC