Re: Silencing 'NOTICE' messages for PRIMARY KEY

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Silencing 'NOTICE' messages for PRIMARY KEY
Дата
Msg-id 003901c08489$c5a84860$1001a8c0@archonet.com
обсуждение исходный текст
Ответ на Silencing 'NOTICE' messages for PRIMARY KEY  (Rajit Singh <singh.raj@studychoice.com>)
Ответы Re: Silencing 'NOTICE' messages for PRIMARY KEY
Список pgsql-general
----- Original Message -----
From: "Rajit Singh" <singh.raj@studychoice.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


В списке pgsql-general по дате отправления:

Предыдущее
От: Guillaume Lémery
Дата:
Сообщение: Re: Troubles with performances
Следующее
От: "Dan Wilson"
Дата:
Сообщение: Re: System tables