Re: Silencing 'NOTICE' messages for PRIMARY KEY

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Rajit Singh" <singh(dot)raj(at)studychoice(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Silencing 'NOTICE' messages for PRIMARY KEY
Date: 2001-01-22 15:41:20
Message-ID: 003901c08489$c5a84860$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

----- Original Message -----
From: "Rajit Singh" <singh(dot)raj(at)studychoice(dot)com>

> Hi,
>
> I just have a small question. I discovered the psql -q option, which is
great... but I wanna get rid of *all* output that isn't something I need to
look at after the 1000th time I've run a particular echo 'blah' | psql.
>
> With the PRIMARY KEY options in some of my schemas, when I use pg_dump
<blah> | psql -q, I get:
>
> NOTICE: CREATE TABLE/PRIMARY KEY will create implicit index 'blah_pkey'
for table 'blah'
>
Try piping the error stream through sed. Something like:

sed -e'/NOTICE/d'

will remove all lines containing NOTICE from the output.

HTH

- Richard Huxton

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-01-22 15:44:06 Re: Re: Troubles with performances
Previous Message Rajit Singh 2001-01-22 15:21:15 Silencing 'NOTICE' messages for PRIMARY KEY