Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

psql too noisy

18 views
Skip to first unread message

Marc Evans

unread,
Dec 19, 2006, 10:14:55 AM12/19/06
to
Hello -

Can anyone suggest a way to suppress all STDOUT/STDERR output by the psql
utility, except for >= ERROR level messages? In particular, I am trying
to suppress NOTICE level messages. The purpose behind this is so that when
a lengthy script is fed to psql to build a virgin DB, the many NOTICE
lines output about things like "implicit sequence" and "implicit index"
are suppressed.

I have tried -q and -v VERBOSITY='terse' with no observed effect.

Thanks in advance - Marc

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Alvaro Herrera

unread,
Dec 19, 2006, 10:19:34 AM12/19/06
to
Marc Evans wrote:
> Hello -
>
> Can anyone suggest a way to suppress all STDOUT/STDERR output by the psql
> utility, except for >= ERROR level messages? In particular, I am trying
> to suppress NOTICE level messages. The purpose behind this is so that when
> a lengthy script is fed to psql to build a virgin DB, the many NOTICE
> lines output about things like "implicit sequence" and "implicit index"
> are suppressed.

Set client_min_messages to WARNING.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

0 new messages