| From: | Peter Smith <smithpb2250(at)gmail(dot)com> |
|---|---|
| To: | Hüseyin Demir <huseyin(dot)d3r(at)gmail(dot)com> |
| Cc: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: [PATCH] Report changes discarded for relations not in the subscription |
| Date: | 2026-12-03 00:29:01 |
| Message-ID: | CAHut+PvXgCQX0GkD5ejzH_xmN6A18rJFC3sOWJwJ4=bj9Hq-PQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Thanks for the v6 updates.
TBH, I didn't have any more comments, but then I did one final
cross-check using LLM (Claude), and that gave multiple review
comments. I am not going to repeat them all here. I recommend you also
feed your patch to see for yourself.
Below are a sample of the points mine made, and they do look like
valid points to me:
1.
----
#define SUBREL_STATE_INIT_LAST_UNAPPLIED '?'
It says this name is confusing because the similarity to
SUBREL_STATE_INIT makes it seem like a variant of that. Suggest
SUBREL_STATE_LAST_UNAPPLIED_NONE or something else...
2.
----
/* Sync state. */
char state;
+
+ /*
+ * Sync state for which report_unapplied_change() last reported, or
+ * SUBREL_STATE_INIT_LAST_UNAPPLIED if nothing has been reported since
+ * changes were last applied. This must be set whenever the entry is
+ * zeroed, as zero is SUBREL_STATE_UNKNOWN.
+ */
+ char last_unapplied_state;
XLogRecPtr statelsn;
Says the placement of this new field has split `state` and `statelsn`
when those really belong together. Also says it's confusing because
now it appears that the comment is for both fields. Suggests putting
your new field last.
3.
----
Tests.
It says that other wait_for_log(...) are not wrapped in ok(), so the
ones in this patch didn't need to be either.
~~~
Probably some LLM advice is overkill and can be ignored, but it's
better to clean up what you agree with before handing this to a
committer.
======
Kind Regards,
Peter Smith.
Fujitsu Australia
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Atsushi Torikoshi | 2026-12-03 01:16:38 | Re: Why is the LSN reported for pg_logical_emit_message() different from other decoded operations? |
| Previous Message | Zsolt Parragi | 2026-12-02 23:47:06 | Re: [PATCH] pgcrypto: Fix sha-crypt rounds= values that do not fit in int (BUG #19743) |