Hi Amit,

Thanks for your feedback.

Let me clarify our use case.

Periodically, we need to refresh both databases with data coming from
another environment. Our procedure is:

   1.

   Drop the subscription.
   2.

   Reload the source and destination tables from the same consistent
   dataset.
   3.

   Recreate the subscription with copy_data = false, since both sides
   already contain identical data.

This procedure works correctly, and the publisher and subscriber are fully
synchronized after the reload.
The issue occurs later, when the application executes a large UPDATE
affecting millions of rows on the publisher. Since the corresponding rows
on the subscriber were loaded locally, PostgreSQL 18 detects
update_origin_differs conflicts for these rows.
The incoming UPDATEs are applied successfully, but PostgreSQL generates a
LOG message for each affected row

Regarding the Resolutions patch, would it allow us to suppress the
reporting of these expected update_origin_differs conflicts in the log
while still applying the incoming UPDATEs normally, preferably keeping
conflict detection and statistics enabled?

Best regards,

Fabrice

On Wed, 25 Nov 2026 at 11:19, Amit Kapila <[email protected]> wrote:

> On Tue, Nov 24, 2026 at 4:46 PM Fabrice Chapuis
> <[email protected]> wrote:
> >
> > Thanks for your detailed explanation and for pointing me to the ongoing
> discussion about conflict_log_destination.
> >
> > I understand that disabling track_commit_timestamp would prevent these
> origin conflicts from being detected. However, I would prefer to keep it
> enabled, as it provides useful information beyond logical replication
> conflict detection.
> >
> > My concern is specifically about the volume of log messages generated by
> non-blocking conflicts such as update_origin_differs and
> delete_origin_differs.
> >
> > In our environment, after reloading millions of rows on the subscriber,
> a large UPDATE on the publisher can generate millions of LOG messages, even
> though replication continues successfully.
> >
>
> Why are you separately reloading a large number of rows separately on
> pub and sub? Is it to avoid initial sync? BTW, there could be cases
> where origin_differ conflicts also need to be handled, for example, if
> the rows are replicated from two different subscriber nodes.
>
> > Would it make sense to introduce a new GUC, for example:
> >
> > log_logical_replication_origin_conflicts = on | off
> >
> > The default would be on to preserve the current behavior.
> >
>
> I feel it is better addressed with the Resolutions patch where on some
> conflicts (say origin_differ), users can choose to ignore some
> conflicts.
>
> --
> With Regards,
> Amit Kapila.
>

Reply via email to