| От | Rajit Singh |
|---|---|
| Тема | Silencing 'NOTICE' messages for PRIMARY KEY |
| Дата | |
| Msg-id | 20010122152115.A4489@studychoice.com обсуждение исходный текст |
| Список | pgsql-general |
Hi,
I just have a small question. I discovered the psql -q option, which is great... but I wanna get rid of *all* output
thatisn'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'
I've looked through pg_dump to try and find an option to get it to explicitly create indexes, and I've looked through
'psql'to try and find an option not to display messages like this. I can't find it.
I'm considering using the option to get psql to exit on error, and to redirect *all* output to /dev/null or something.
ButI'd like it if I could utilise psql's own error reporting without having to look through hundreds of defunct NOTICE
statements.
All help appreciated,
Rajit
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера