PL/PERL: raise notice, exception ?

Started by Philippe Langabout 21 years ago3 messagesgeneral
Jump to latest
#1Philippe Lang
philippe.lang@attiksystem.ch

Hi,

Is there in PL/PERL, under PG 8.01, an equivalent for the "raise notice,
exception" commands of PL/PGSQL?

Philippe

#2David Fetter
david@fetter.org
In reply to: Philippe Lang (#1)
Re: PL/PERL: raise notice, exception ?

On Tue, Apr 05, 2005 at 04:28:10PM +0200, Philippe Lang wrote:

Hi,

Is there in PL/PERL, under PG 8.01, an equivalent for the "raise
notice, exception" commands of PL/PGSQL?

Use the elog() function. :)

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

Remember to vote!

#3Jim Nasby
Jim.Nasby@BlueTreble.com
In reply to: David Fetter (#2)
Re: PL/PERL: raise notice, exception ?

On Tue, Apr 05, 2005 at 07:37:03AM -0700, David Fetter wrote:

On Tue, Apr 05, 2005 at 04:28:10PM +0200, Philippe Lang wrote:

Hi,

Is there in PL/PERL, under PG 8.01, an equivalent for the "raise
notice, exception" commands of PL/PGSQL?

Use the elog() function. :)

See also
http://www.postgresql.org/docs/current/static/plpgsql-errors-and-messages.html
--
Jim C. Nasby, Database Consultant decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"