Re: [DOCS] RAISE INFO and client_min_messages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [DOCS] RAISE INFO and client_min_messages
Дата
Msg-id 19771.1490279948@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [DOCS] RAISE INFO and client_min_messages  (Pavel Luzanov <p.luzanov@postgrespro.ru>)
Ответы Re: [DOCS] RAISE INFO and client_min_messages  (Pavel Luzanov <p.luzanov@postgrespro.ru>)
Список 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 по дате отправления:

Предыдущее
От: Pavel Luzanov
Дата:
Сообщение: [DOCS] RAISE INFO and client_min_messages
Следующее
От: Pavel Luzanov
Дата:
Сообщение: Re: [DOCS] RAISE INFO and client_min_messages