Re: turning off notices

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Sue Fitt <sfitt(at)fittconway(dot)plus(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: turning off notices
Date: 2008-01-19 16:16:31
Message-ID: 20080119081329.D59808@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 19 Jan 2008, Sue Fitt wrote:

> Hi All,
>
> I'm having trouble with turning off notices. Within psql I use \set
> VERBOSITY terse, which is fine. However, using psql -c I am having
> trouble. It seems I should be able to use psql -qc 'mycommand' but I am
> still getting notices output, e.g.
>
> psql -d combilex -qc 'SELECT * FROM show(1135311);'
> NOTICE: phonotactic error, please check transcription
> CONTEXT: SQL statement "SELECT etc....
>
> Is there a way to turn these notices off other than reconfiguring the
> conf file and restarting the database? I am using 8.1.3.

If you want no notices, you could try "set client_min_messages TO
WARNING".

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-01-19 16:51:56 Re: WARNINGs after starting backup server created with PITR
Previous Message Sue Fitt 2008-01-19 16:08:23 Re: turning off notices