On Tue, Apr 7, 2026 at 12:18 PM Amit Kapila <[email protected]> wrote: > > On Tue, Apr 7, 2026 at 8:34 AM Fujii Masao <[email protected]> wrote: > > > > On Tue, Apr 7, 2026 at 1:16 AM Robert Haas <[email protected]> wrote: > > > > But probably are you suggesting making this behavior the default? If > > > > yes, > > > > one straightforward approach to implement that would be to log these > > > > messages > > > > at LOG when AmWalSenderProcess() or AmLogicalSlotSyncWorkerProcess() is > > > > true, > > > > and at DEBUG1 otherwise. > > > > > > Yeah. > > > > OK, I've prepared a patch to implement this. Patch attached. > > It introduces a LogicalDecodingLogLevel() macro to choose the log level > > based on context, but the name may not be ideal, so suggestions are welcome. > > > > How about adding repack_worker to that check as well? See 28d534e2ae.
Thanks for the info! It may be better to use DEBUG1 when AmRegularBackendProcess() is true and LOG otherwise, rather than checking AmWalSenderProcess() or AmLogicalSlotSyncWorkerProcess(). This would also cover any future background processes that use logical decoding. Regards, -- Fujii Masao
