Re: [EXT] Re: log_min_messages = warning - Mailing list pgsql-general

From Tom Lane
Subject Re: [EXT] Re: log_min_messages = warning
Date
Msg-id 3383979.1662499787@sss.pgh.pa.us
Whole thread Raw
In response to RE: [EXT] Re: log_min_messages = warning  ("Dirschel, Steve" <steve.dirschel@thomsonreuters.com>)
Responses RE: [EXT] Re: log_min_messages = warning
List 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 by date:

Previous
From: "Dirschel, Steve"
Date:
Subject: RE: [EXT] Re: log_min_messages = warning
Next
From: David Rowley
Date:
Subject: Re: Feature proposal: immutable/sealed partitions (and maybe tables, too)