Re: How to disable displaying of a NOTICE context? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: How to disable displaying of a NOTICE context?
Date
Msg-id 200703201811.l2KIBLn24568@momjian.us
Whole thread Raw
In response to Re: How to disable displaying of a NOTICE context?  ("Dmitry Koterov" <dmitry@koterov.ru>)
List pgsql-general
Dmitry Koterov wrote:
> Thanks!
>
> With RAISE NOTICE "terse" mode works great, CONTEXT is not shown.
>
> But does "terse" also disable CONTEXT displaying on fatal errors inside a
> stored function? If it does, it is not so useful as it could be, because I
> don't think that fatal error context hiding is a good idea... No
> documentation about it at all.

I think you need to set it to 'terse', use RAISE, then reset it.

---------------------------------------------------------------------------


>
>
> On 3/13/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >
> > "Dmitry Koterov" <dmitry@koterov.ru> writes:
> > > Is there any way to disable CONTEXT displaying with still enabled
> > NOTICEs
> > > text?
> >
> > You could do "\set VERBOSITY terse"
> >
> >                         regards, tom lane
> >

--
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: Benjamin Arai
Date:
Subject: SoC Ideas for people looking for projects
Next
From: Bob Pawley
Date:
Subject: Postgresql to Delphi