Re: Excessive LOG messages from replication slot sync worker - Mailing list pgsql-hackers

From Japin Li
Subject Re: Excessive LOG messages from replication slot sync worker
Date
Msg-id ME0P300MB0445125144465F1CD1FD58D3B62BA@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
Whole thread Raw
In response to Re: Excessive LOG messages from replication slot sync worker  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Excessive LOG messages from replication slot sync worker
List pgsql-hackers
On Tue, Aug 12, 2025 at 07:14:38PM +0900, Fujii Masao wrote:
> On Tue, Aug 12, 2025 at 6:25 PM Japin Li <japinli@hotmail.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!
> 
> Since we're changing the first "%X" in "%X-%X" to "%08X", the example
> file names in the docs should be updated too. For example:
> 
> $ git grep "\.snap" | grep pglogicalinspect.sgml
> doc/src/sgml/pglogicalinspect.sgml:name         | 0-40796E18.snap
> doc/src/sgml/pglogicalinspect.sgml:postgres=# SELECT * FROM
> pg_get_logical_snapshot_meta('0-40796E18.snap');
> doc/src/sgml/pglogicalinspect.sgml:name     | 0-40796E18.snap
> doc/src/sgml/pglogicalinspect.sgml:name         | 0-40796E18.snap
> doc/src/sgml/pglogicalinspect.sgml:postgres=# SELECT * FROM
> pg_get_logical_snapshot_info('0-40796E18.snap');
> doc/src/sgml/pglogicalinspect.sgml:name                     | 0-40796E18.snap
> 
> I also noticed that the regression tests for pg_logicalinspect use file
> names in the old format. This doesn't cause test failures, but should
> we update them to match the new format?
> 
> ...
> contrib/pg_logicalinspect/sql/pg_logicalinspect.sql:SELECT
> pg_get_logical_snapshot_info('0/40796E18.snap');
> contrib/pg_logicalinspect/sql/pg_logicalinspect.sql:SELECT
> pg_get_logical_snapshot_info('../snapshots/0-40796E18.snap');
> contrib/pg_logicalinspect/sql/pg_logicalinspect.sql:SELECT
> pg_get_logical_snapshot_meta('0-40796E18.foo.snap');
> contrib/pg_logicalinspect/sql/pg_logicalinspect.sql:SELECT
> pg_get_logical_snapshot_meta('0/40796E18.snap');
> ...
> 

Update in v3 patch.

OTOH, I also update reorder buffer spill file path.

$ git grep -E 'xid-.*-lsn.*spill'
src/backend/replication/logical/reorderbuffer.c: snprintf(path, MAXPGPATH, "%s/%s/xid-%u-lsn-%X-%X.spill",

-- 
Best regards,
Japin Li
ChengDu WenWu Information Technology Co., LTD.

Attachment

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Adding basic NUMA awareness
Next
From: Amit Langote
Date:
Subject: Re: sql/json query function JsonBehavior default expression's collation may differ from returning type's collation