Re: Reduce log level of some logical decoding messages to DEBUG1 - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Reduce log level of some logical decoding messages to DEBUG1
Date
Msg-id CAHGQGwFB+hC97SHDpn1vOHHOq9uM5OZZmt50j7v6Z1JUNtH5zQ@mail.gmail.com
Whole thread
In response to Re: Reduce log level of some logical decoding messages to DEBUG1  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Reduce log level of some logical decoding messages to DEBUG1
List pgsql-hackers
On Tue, Mar 24, 2026 at 12:44 AM Fujii Masao <masao.fujii@gmail.com> wrote:
> > > Alternatively, if we want to keep them at LOG by default, we could introduce
> > > a GUC like trace_logical_decoding_messages, similar to
> > > the old trace_recovery_messages, to control their verbosity independently
> > > of log_min_messages.

Just in case where many users still want to see those log messages at LOG level,
I also created a second patch (0002) that introduces a new GUC,
trace_logical_decoding_messages, to control logging of logical
decoding debug messages (e.g., "logical decoding found consistent point").

With the default setting (DEBUG1 for now), these messages are effectively
logged at LOG level. Setting it to LOG suppresses them unless permitted
by log_min_messages.

At the moment, this parameter affects only a small set of messages
(about five). We can consider extending it to cover more logical
decoding messages later.

Regards,

--
Fujii Masao

Attachment

pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: Adding locks statistics
Next
From: Andres Freund
Date:
Subject: Re: Test timings are increasing too fast for cfbot