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

From David Fetter
Subject Re: Exceptions in PL/Perl?
Date
Msg-id 20050811145724.GA19252@fetter.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>"?

elog(ERROR, $errmsg)

works.

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 510 893 6100   mobile: +1 415 235 3778

Remember to vote!

pgsql-general by date:

Previous
From: Ying Lu
Date:
Subject: About using plpgsql funciton variable as the table name
Next
From: Michael Fuhr
Date:
Subject: Re: Exceptions in PL/Perl?