Re: how to supress Notice messages or decrease verbosity level

From: Keve Nagy <keve(at)private(dot)invalid>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how to supress Notice messages or decrease verbosity level
Date: 2005-09-13 23:55:43
Message-ID: 3op3opF7362gU1@individual.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Keve Nagy wrote:
> I get NOTICE messages messing up the screen, telling me the obvious
> thing that indexes had to be created for the UNIQUE or PRIMARY KEY
> constraint.

If anybody else is interested, the solution is:

SET LOCAL client_min_messages TO 'warning';

This will suppress all NOTICE messages for the transaction, and then
return to the original state which is client_min_messages = 'notice' by
default.

YES< I love answering my own posts!
:-)

Regards,
Keve

--
If you need to reply directly:
keve(at)mail(dot)poliod(dot)hu

Browse pgsql-general by date

  From Date Subject
Next Message Michael Schuerig 2005-09-14 00:12:34 Setting date format for a single output column?
Previous Message Stephen Frost 2005-09-13 23:23:52 Re: oracle's first_value function for postgres?