On Mon, Oct 12, 2026 at 7:50 AM Zhijie Hou <[email protected]> wrote:
>
> Agreed. We can fix the reported issue for now. I'm attaching a merged patch
> that uses the index comparison approach to fix only the reported issue here. I
> also improved the test for the update_deleted detection code path to hold
> slot.xmin stable, and removed some unnecessary instance creation/deletion to
> make it lighter. Please see the updated patch.

This v4 looks good to me. Thank you for helping with this! Maybe one
minor change:

src/test/subscription/t/035_conflicts.pl
+# Publisher table holding the row that will be updated.
+$node_B->safe_psql(
+   'postgres', "
+   CREATE TABLE tab_mr (id int4multirange, valid_at daterange, v int);
+   ALTER TABLE tab_mr REPLICA IDENTITY FULL;
+   INSERT INTO tab_mr VALUES ('{[1,5)}', '[2000-01-01,2010-01-01)', 1);
+   ALTER PUBLICATION tap_pub_B ADD TABLE tab_mr;
+");

If we say PRIMARY KEY (id, valid_at WITHOUT OVERLAPS) then we don't
need REPLICA IDENTITY FULL.

Yours,

-- 
Paul              ~{:-)
[email protected]


Reply via email to