Re: How to hide NOTICE messages in psql.exe ?

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Szymic1 <dyrex(at)poczta(dot)onet(dot)pl>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to hide NOTICE messages in psql.exe ?
Date: 2006-07-06 18:02:15
Message-ID: 20060706180215.1075.qmail@web31809.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > might also be interested in psql's -q option (or "\set QUIET").
>
> I use -q but I've got e.g
>
> Z:\>psql.exe -q -d ff -h localhost -p 5432 -U postgres
> 0<D:\ff\centralny\src\db\processing_utils.sql
> NOTICE: type reference ff.alias.mask%TYPE converted to character
> varying
> NOTICE: type reference freeconet.logic_list_item.conv%TYPE converted
> to charact
> er varying
> NOTICE: type reference ff.logic_list_item.conv%TYPE converted to
> charact
> er varying
> NOTICE: type reference ff.alias.mask%TYPE converted to character
> varying
> NOTICE: type reference ff.account.user_name%TYPE converted to
> character
> varying
> NOTICE: type reference ff.alias.mask%TYPE converted to character
> varying
>
> I would like to hide lines with NOTICE

Would making the following changes to you postgresql.conf help?

redirect_stderr = true
client_min_messages = warning

You may need to restart PostgreSQL for these changes to take effect.

Regards,
Richard Broersma Jr.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2006-07-06 18:04:25 Re: Backing up the currently used wal segment
Previous Message Greg Stark 2006-07-06 17:41:53 Re: [GENERAL] UUID's as primary keys