Re: [EXT] Re: log_min_messages = warning

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [EXT] Re: log_min_messages = warning
Дата
Msg-id 3383979.1662499787@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: [EXT] Re: log_min_messages = warning  ("Dirschel, Steve" <steve.dirschel@thomsonreuters.com>)
Ответы RE: [EXT] Re: log_min_messages = warning  ("Dirschel, Steve" <steve.dirschel@thomsonreuters.com>)
Список pgsql-general
"Dirschel, Steve" <steve.dirschel@thomsonreuters.com> writes:
>  setdatabase | setrole |
                                           setconfig 

>
-------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> ----------------------------------------------------------------------------------------------------
>        16401 |       0 | {auto_explain.log_min_duration=-1}
>        16401 |      10 | {log_min_messages=panic}
>        16436 |       0 | {TimeZone=America/Chicago}
>            0 |      10 |
{TimeZone=utc,log_statement=all,log_min_error_statement=debug5,log_min_messages=panic,exit_on_error=0,statement_timeout=0,role=rdsadmin,auto_explain.log_min_duration=-1,temp_file_limit=
> -1,"search_path=pg_catalog, public",pg_hint_plan.enable_hint=off,default_transaction_read_only=off}
> (4 rows)

> If I login to the shgroup02s database as postgres user (using psql) and
> interactively call a procedure that cron calls which causes the RAISE
> NOTICE commands to be written to the log they do NOT get written to the
> log when I call the procedure.  The messages will be displayed on my
> screen but I don't see them getting written to the log.

You've evidently done "ALTER USER postgres SET log_min_messages=panic",
so the lack of any messages under that userid is unsurprising.  But
we're not a lot closer to being sure why it's different for the
procedures' normal execution environment.

At this point it's hard to avoid the conclusion that those procedures'
session is changing the value itself.  (This is scary, because it implies
that you're running those as superuser, which seems like a bad idea.)
You might have to enable log_statement = all to verify that.

            regards, tom lane



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

Предыдущее
От: "Dirschel, Steve"
Дата:
Сообщение: RE: [EXT] Re: log_min_messages = warning
Следующее
От: David Rowley
Дата:
Сообщение: Re: Feature proposal: immutable/sealed partitions (and maybe tables, too)