Re: echo/printf function in plpgsql

Поиск
Список
Период
Сортировка
От Andreas Joseph Krogh
Тема Re: echo/printf function in plpgsql
Дата
Msg-id 200507192236.48641.andreak@officenet.no
обсуждение исходный текст
Ответ на Re: echo/printf function in plpgsql  (Tony Wasson <ajwasson@gmail.com>)
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tony Wasson
Дата:
Сообщение: Re: echo/printf function in plpgsql
Следующее
От: Chris Travers
Дата:
Сообщение: Coalesce() in outer join between views