Thread: Re: log_min_messages per backend type

Re: log_min_messages per backend type

From
Kirill Reshke
Date:
On Wed, 18 Dec 2024 at 00:15, Euler Taveira <euler@eulerto.com> wrote:
>
> Hi,
>
> Sometimes you need to inspect some debug messages from autovacuum worker but
> you cannot apply the same setting for backends (that could rapidly fill the log
> file). This proposal aims to change log_min_messages to have different log
> levels depending on which backend type the message comes from.

Hi! Looks like a sane proposal. Correct me if I'm wrong, but with your
patch it is not possible to configure something like "everybody ERROR,
but autovac DEBUG5"? I mean,
set log_min_messages to 'ERROR:default, DEBUG5:autovacuum' (not
specifying all possible cases?)



Re: log_min_messages per backend type

From
"Euler Taveira"
Date:
On Thu, Dec 19, 2024, at 1:13 AM, Kirill Reshke wrote:
Hi! Looks like a sane proposal. Correct me if I'm wrong, but with your
patch it is not possible to configure something like "everybody ERROR,
but autovac DEBUG5"? I mean,
set log_min_messages to 'ERROR:default, DEBUG5:autovacuum' (not
specifying all possible cases?)

No. Good point. I forgot to mention that ALL as backend type could be added.


--
Euler Taveira