Re: Logical Replication of sequences - Mailing list pgsql-hackers

From Dilip Kumar
Subject Re: Logical Replication of sequences
Date
Msg-id CAFiTN-sC4yE_u7fa+UQS38JvhxN_VYSWTq2O_2bTRxxq=eW8FQ@mail.gmail.com
Whole thread Raw
In response to RE: Logical Replication of sequences  ("Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>)
List pgsql-hackers
On Thu, Oct 16, 2025 at 4:53 PM Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com> wrote:
On Thursday, October 16, 2025 5:59 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
>

While reading through the patch, I have 2 comments in 0002 

1.
+ ereport(LOG,
+ errmsg("logical replication sequence synchronization for subscription \"%s\" - batch #%d = %d attempted, %d succeeded, %d skipped, %d mismatched, %d insufficient permission, %d missing, ",
+   MySubscription->name, (current_index / MAX_SEQUENCES_SYNC_PER_BATCH) + 1, batch_size,
+   batch_succeeded_count, batch_skipped_count, batch_mismatched_count, batch_insuffperm_count,
+   batch_size - (batch_succeeded_count + batch_skipped_count + batch_mismatched_count + batch_insuffperm_count)));
+

 The log message is ending with ..." %d missing, "  (a trailing comma and space).

2.
Also IMHO instead of just saying "missing" we can say "missing on/from publisher" so that it would be more clear.

--
Regards,
Dilip Kumar
Google

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: pg_restore --no-policies should not restore policies' comment
Next
From: Nazir Bilal Yavuz
Date:
Subject: Re: ci: Skip minfree file in the cores_backtrace.sh