pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: Drew Wilson <amw@speakeasy.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: logging messages from inside pgPLSQL routine?
Date: Thu, 21 Aug 2003 19:21:30 -0600
Message-ID: <20030822012130.GB9496@cc.usu.edu> (raw)
In-Reply-To: <9E11790C-D436-11D7-A9F2-000393D3E482@speakeasy.net>
References: <200308181611.27937.josh@agliodbs.com>
	<9E11790C-D436-11D7-A9F2-000393D3E482@speakeasy.net>

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...



view thread (2+ messages)

Message-ID: <20030822012130.GB9496@cc.usu.edu>
Permalink:  ../20030822012130.GB9496@cc.usu.edu/
Also on:    postgresql.org/message-id/20030822012130.GB9496@cc.usu.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rmello@cc.usu.edu, amw@speakeasy.net
  Subject: Re: logging messages from inside pgPLSQL routine?
  In-Reply-To: <20030822012130.GB9496@cc.usu.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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