Re: Exceptions in PL/Perl? - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Exceptions in PL/Perl?
Date
Msg-id 20050811144304.GA91822@winnie.fuhr.org
Whole thread Raw
In response to Exceptions in PL/Perl?  (Jeff Boes <jeff@endpoint.com>)
List 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

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re: Exceptions in PL/Perl?
Next
From: Richard Huxton
Date:
Subject: Re: About using plpgsql funciton variable as the table