From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Japin Li <japinli(at)hotmail(dot)com> |
Cc: | shveta malik <shveta(dot)malik(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Excessive LOG messages from replication slot sync worker |
Date: | 2025-08-12 10:58:25 |
Message-ID: | CAHGQGwGQriuG1_y+oVNs=ux_RC_Ex8833T074FdZtrCRShqW3A@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Aug 12, 2025 at 7:14 PM Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
> On Tue, Aug 12, 2025 at 6:25 PM Japin Li <japinli(at)hotmail(dot)com> wrote:
> > I believe that the format %X-%X also works with sscanf(). However, to maintain
> > consistency, the format for sscanf() has been updated as well.
>
> Yes.
> Thanks for the patch!
With the patch, the excessive LOG messages from the replication slot sync
worker are gone. However, it still logged periodically, about two messages
every 30 seconds, for example:
2025-08-12 19:49:03.288 JST [sby][slotsync worker] LOG: starting
logical decoding for slot "mysub"
2025-08-12 19:49:03.288 JST [sby][slotsync worker] DETAIL: Streaming
transactions committing after 0/0FAD3940, reading WAL from 0/0D4C9CE8.
2025-08-12 19:49:03.289 JST [sby][slotsync worker] LOG: logical
decoding found consistent point at 0/0D4C9CE8
2025-08-12 19:49:03.289 JST [sby][slotsync worker] DETAIL: Logical
decoding will begin using saved snapshot.
2025-08-12 19:49:46.048 JST [sby][slotsync worker] LOG: starting
logical decoding for slot "mysub"
2025-08-12 19:49:46.048 JST [sby][slotsync worker] DETAIL: Streaming
transactions committing after 0/10A60230, reading WAL from 0/0FAEE120.
2025-08-12 19:49:46.049 JST [sby][slotsync worker] LOG: logical
decoding found consistent point at 0/0FAEE120
2025-08-12 19:49:46.049 JST [sby][slotsync worker] DETAIL: Logical
decoding will begin using saved snapshot.
I'm not sure these messages are useful for end users, and LOG might not be
the right level. They seem more like debug information, so should we consider
changing them to DEBUG, even with the proposed patch applied?
Regards,
--
Fujii Masao
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2025-08-12 11:04:07 | Re: Adding basic NUMA awareness |
Previous Message | Fujii Masao | 2025-08-12 10:36:15 | Re: Update the LSN format in the comment example |