Re: [HACKERS] How to get 'psql -q' runs really quiet ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] How to get 'psql -q' runs really quiet ?
Дата
Msg-id 7458.934642249@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to get 'psql -q' runs really quiet ?  (Oleg Bartunov <oleg@sai.msu.su>)
Ответы Re: [HACKERS] How to get 'psql -q' runs really quiet ?  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
Oleg Bartunov <oleg@sai.msu.su> writes:
> I need to run psql really quiet - no messages, just returning RC.
> psql -q doesn't works as supposed from man page - 
> I'm still getting messages like:
> NOTICE:  CREATE TABLE/PRIMARY KEY will create implicit index .....

The way libpq is set up, NOTICE messages *will* appear on stderr
no matter what, unless the client app overrides the default notice
message processor (which is this hugely complicated routine that
calls fprintf(stderr, ...) ;-)).

Perhaps psql ought to plug in a no-op notice message processor
if -q is specified.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] UNIQUE constraint no longer works under 6.5.1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Anyone recognise this error from PL/pgSQL?