On Wed, Nov 25, 2026 at 9:57 PM Fabrice Chapuis
<[email protected]> wrote:
>
> 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:
>
> Drop the subscription.
>
> Reload the source and destination tables from the same consistent dataset.
>
> 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
>

This LOG should appear only after the first time the row has been
updated. BTW, can you try "VACUUM (FREEZE) <tbl_name>;" on the
subscriber after reload because that should let
GetTupleTransactionInfo() to return false and the conflict shouldn't
be reported in the particular scenario you shared.

> 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?
>

I don't know at this stage but surely we can consider during
Resouldtions development. Kindly do provide the feedback on the
relavant thread once the work on it is restarted.

-- 
With Regards,
Amit Kapila.


Reply via email to