Re: Help supressing NOTICE messages - Mailing list pgsql-general

From Devrim GUNDUZ
Subject Re: Help supressing NOTICE messages
Date
Msg-id Pine.LNX.4.61.0409071411110.12570@emo.org.tr
Whole thread Raw
In response to Help supressing NOTICE messages  (Alex Soto <apsoto@gmail.com>)
Responses Re: Help supressing NOTICE messages
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

On Tue, 7 Sep 2004, Alex Soto wrote:

> I'm developing some scripts to create my schema to be run by other
> developers and I'd like to have them not spit out those NOTICE messages
> when you create a table regarding the implicit indexes that are made
> since it just makes it harder to see when there is a real error.
>
> I've tried running psql with the quiet argument, I've set the QUIET
> variable to true and the VERBOSITY level to terse but the NOTICE
> messages still appear(while all other output is supressed).

Is that what you're looking for? :

==============================================================
test=# SHOW client_min_messages ;
  client_min_messages
- ---------------------
  notice
(1 row)

test=# CREATE TABLE alex (id serial);
NOTICE:  CREATE TABLE will create implicit sequence "alex_id_seq" for
"serial" column "alex.id"
CREATE TABLE
test=# SET client_min_messages TO error;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SET
test=# CREATE TABLE alex2 (id serial);
CREATE TABLE

==============================================0

The line:

SET client_min_messages TO error;

spits out the NOTICE messages.

Regards,
- --
Devrim GUNDUZ
devrim~gunduz.org                devrim.gunduz~linux.org.tr
             http://www.tdmsoft.com
             http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBPZhGtl86P3SPfQ4RAolqAKDKkbfwrEA2fgZTT0tfXieTnpAZRQCglicl
ZU38zougu+ke/jIQjmDcec8=
=4/tc
-----END PGP SIGNATURE-----

pgsql-general by date:

Previous
From: Devrim GUNDUZ
Date:
Subject: Re: changing the password of postres
Next
From: Jerome Lyles
Date:
Subject: Postgresql and scripting