On Tue, Nov 24, 2026 at 2:57 AM <[email protected]> wrote: > > Now that the update_delete issue has been addressed, is conflict resolution > going to be picked up again?
Yes, we plan to continue the conflict resolution work. But first we want to fix a few gaps in conflict detection, because resolution can only be as reliable as the detection it depends on: 1. Detecting conflicts correctly when a replication origin ID is reused. Today, after a subscription is dropped and its origin ID is reused, rows written by the old subscription look like local changes of the new one, so real conflicts can be missed [1]. 2. Keeping replication origin IDs the same across pg_upgrade. The commit timestamp data copied by pg_upgrade still refers to the old origin IDs, so after the upgrade conflicts can be reported wrongly or missed [2]. 3. Finding the target row reliably when it is updated concurrently on the subscriber. Today the apply worker can miss the row, so the remote UPDATE or DELETE is lost and the conflict is reported as update_missing/delete_missing instead of update_origin_differs/delete_origin_differs [3]. Once these are fixed, we can return to conflict resolution. > Will this ultimately lead to full support for bi-directional logical > replication? > I'm not sure what you mean by full support. Conflict resolution is one important piece, but there are others too, such as replicating DDL. Is there a particular setup or use case you're thinking of? [1] https://postgr.es/m/CABdArM5k7wCxq+L2r9-mLOoPXe_iHgdeRMXc31oxvzSj=xp...@mail.gmail.com [2] https://postgr.es/m/CAFPTHDa5aP8ixTZBygGAe48E1N=dvupzcxikw7bnkixlmn3...@mail.gmail.com [3] https://postgr.es/m/cadzflwxzvmbo11tfs_g2i+6tffvwhu4vuuseoqb+8uqfuoj...@mail.gmail.com -- Thanks, Nisha
