pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
logging messages from inside pgPLSQL routine?
2+ messages / 2 participants
[nested] [flat]

* logging messages from inside pgPLSQL routine?
@ 2003-08-22 00:21 Drew Wilson <amw@speakeasy.net>
  2003-08-22 01:21 ` Re: logging messages from inside pgPLSQL routine? Roberto Mello <rmello@cc.usu.edu>
  0 siblings, 1 reply; 2+ messages in thread

From: Drew Wilson @ 2003-08-22 00:21 UTC (permalink / raw)
  To: pgsql-sql

I'mm trying to debug something inside my PLSQL routine. How do I print 
out error messages from inside my function?

Thanks,

Drew




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: logging messages from inside pgPLSQL routine?
  2003-08-22 00:21 logging messages from inside pgPLSQL routine? Drew Wilson <amw@speakeasy.net>
@ 2003-08-22 01:21 ` Roberto Mello <rmello@cc.usu.edu>
  0 siblings, 0 replies; 2+ messages in thread

From: Roberto Mello @ 2003-08-22 01:21 UTC (permalink / raw)
  To: Drew Wilson <amw@speakeasy.net>; +Cc: 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...



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-08-22 01:21 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-22 00:21 logging messages from inside pgPLSQL routine? Drew Wilson <amw@speakeasy.net>
2003-08-22 01:21 ` Roberto Mello <rmello@cc.usu.edu>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox