From: | Tony Wasson <ajwasson(at)gmail(dot)com> |
---|---|
To: | Andreas Joseph Krogh <andreak(at)officenet(dot)no> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: echo/printf function in plpgsql |
Date: | 2005-07-19 20:09:26 |
Message-ID: | 6d8daee30507191309515f33c4@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On 7/19/05, Andreas Joseph Krogh <andreak(at)officenet(dot)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;
http://www.postgresql.org/docs/8.0/interactive/runtime-config.html
Tony
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Joseph Krogh | 2005-07-19 20:36:48 | Re: echo/printf function in plpgsql |
Previous Message | Tony Wasson | 2005-07-19 19:00:21 | Re: funstions for parsing words |