Re: [DOCS] RAISE INFO and client_min_messages - Mailing list pgsql-docs

From Tom Lane
Subject Re: [DOCS] RAISE INFO and client_min_messages
Date
Msg-id 19771.1490279948@sss.pgh.pa.us
Whole thread Raw
In response to [DOCS] RAISE INFO and client_min_messages  (Pavel Luzanov <p.luzanov@postgrespro.ru>)
Responses Re: [DOCS] RAISE INFO and client_min_messages  (Pavel Luzanov <p.luzanov@postgrespro.ru>)
List pgsql-docs
Pavel Luzanov <p.luzanov@postgrespro.ru> writes:
> When working with RAISE statement in PL/pgSQL, I found a strange
> situation with client_min_messages.

> According to the documentation, client_min_messages does not include the
> value 'INFO'.

Indeed.  INFO messages cannot be suppressed by client_min_messages.
The reason is that they are emitted by commands like VACUUM VERBOSE,
where (presumably) the entire reason the user said VERBOSE is that
she wanted to see those messages.

I do not recommend using INFO in "RAISE" except in cases similar
to that one.

            regards, tom lane


pgsql-docs by date:

Previous
From: Pavel Luzanov
Date:
Subject: [DOCS] RAISE INFO and client_min_messages
Next
From: Pavel Luzanov
Date:
Subject: Re: [DOCS] RAISE INFO and client_min_messages