Re: client_min_messages not suppressing messages in psql nor pgAdminIII - Mailing list pgsql-general

From Tom Lane
Subject Re: client_min_messages not suppressing messages in psql nor pgAdminIII
Date
Msg-id 29980.1390324904@sss.pgh.pa.us
Whole thread Raw
In response to Re: client_min_messages not suppressing messages in psql nor pgAdminIII  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: client_min_messages not suppressing messages in psql nor pgAdminIII  (Kevin Field <kev@brantaero.com>)
List pgsql-general
Jeff Janes <jeff.janes@gmail.com> writes:
> Why not use NOTICE?  INFO is supposed to be used for things the user
> *requested* to see (for example, by supplying the "verbose" option to one
> of the commands which take that option).

> The documentation could be clearer on this, but it seems to suggest that
> there is no way to turn off INFO to the client.

Yeah.  Per elog.h:

#define INFO        17          /* Messages specifically requested by user (eg
                                 * VACUUM VERBOSE output); always sent to
                                 * client regardless of client_min_messages,
                                 * but by default not sent to server log. */

You should not be using level INFO unless you are responding to an
explicit client request to get the output.  If memory serves, we'd
not even have invented that level except that VACUUM VERBOSE existed
before we invented the elog levels, and we wanted to preserve its
always-print-the-results behavior.

            regards, tom lane


pgsql-general by date:

Previous
From: Jeff Janes
Date:
Subject: Re: client_min_messages not suppressing messages in psql nor pgAdminIII
Next
From: Tom Lane
Date:
Subject: Re: UDP Overflow / UDP Drops on Standby Postgres Service