Re: Exceptions in PL/Perl?

From: David Fetter <david(at)fetter(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:57:24
Message-ID: 20050811145724.GA19252@fetter.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>"?

elog(ERROR, $errmsg)

works.

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

Remember to vote!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ying Lu 2005-08-11 15:00:06 About using plpgsql funciton variable as the table name
Previous Message Michael Fuhr 2005-08-11 14:43:04 Re: Exceptions in PL/Perl?