pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreak@officenet.no>
To: pgsql-sql@postgresql.org, Tony Wasson <ajwasson@gmail.com>
Subject: Re: echo/printf function in plpgsql
Date: Tue, 19 Jul 2005 22:36:48 +0200
Message-ID: <200507192236.48641.andreak@officenet.no> (raw)
In-Reply-To: <6d8daee30507191309515f33c4@mail.gmail.com>
References: <200507191651.28648.andreak@officenet.no>
	<200507191758.05273.andreak@officenet.no>
	<6d8daee30507191309515f33c4@mail.gmail.com>

On Tuesday 19 July 2005 22:09, Tony Wasson wrote:
> On 7/19/05, Andreas Joseph Krogh <andreak@officenet.no> wrote:
> > On Tuesday 19 July 2005 17:18, Richard Huxton wrote:
> > > Andreas Joseph Krogh wrote:
> > > > Hi all!
> > > >
> > > > Is there a way of echo'ing a string(like "raise notice 'this is id%',
> > > > id") from plpgsql? I want to echo/print it to STDOUT 'cause the
> > > > notice-mechanism produces too much noise IMH.
> > >
> > > Your function is running in the backend. You don't have a STDOUT
> > > (although you might have redirected STDERR for logging).
> >
> > I see. Can I make the ouput somehow less verbose? It spits out a lot of
> > noise for each "NOTICE":
>
> You can control the severity messages sent to your client by first
> setting client_min_message.
>
> Try SET client_min_messages = WARNING;

Thanks

--
AJK



view thread (7+ messages)  latest in thread

Message-ID: <200507192236.48641.andreak@officenet.no>
Permalink:  ../200507192236.48641.andreak@officenet.no/
Also on:    postgresql.org/message-id/200507192236.48641.andreak@officenet.no

 · 

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: andreak@officenet.no, ajwasson@gmail.com
  Subject: Re: echo/printf function in plpgsql
  In-Reply-To: <200507192236.48641.andreak@officenet.no>

* 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