Re: logging messages from inside pgPLSQL routine? - Mailing list pgsql-sql

From Roberto Mello
Subject Re: logging messages from inside pgPLSQL routine?
Date
Msg-id 20030822012130.GB9496@cc.usu.edu
Whole thread Raw
In response to logging messages from inside pgPLSQL routine?  (Drew Wilson <amw@speakeasy.net>)
List pgsql-sql
On Thu, Aug 21, 2003 at 05:21:47PM -0700, Drew Wilson wrote:
> I'mm trying to debug something inside my PLSQL routine. How do I print 
> out error messages from inside my function?

RAISE NOTICE ''Foobar is %'', foobar;

Where "foobar" is a variable. The documentation mentions this in several
places and examples.

-Roberto

-- 
+----|        Roberto Mello   -    http://www.brasileiro.net/  |------+
+       Computer Science Graduate Student, Utah State University      +
+       USU Free Software & GNU/Linux Club - http://fslc.usu.edu/     +
Compiling...Linking...Dialing Copyright Lawyer...


pgsql-sql by date:

Previous
From: Drew Wilson
Date:
Subject: logging messages from inside pgPLSQL routine?
Next
From: MichaelHoeller@t-online.de
Date:
Subject: date calculation