| From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
|---|---|
| To: | Fabrice Chapuis <commeilmeplait(at)gmail(dot)com> |
| Cc: | Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: unidirectional logical replication logging issue |
| Date: | 2026-11-27 12:42:55 |
| Message-ID: | CAA4eK1LgnC-6vdpHHb-R8_njTegZ2f7UH8cOWiNP698MA9Y4EQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Nov 25, 2026 at 9:57 PM Fabrice Chapuis
<commeilmeplait(at)gmail(dot)com> 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Diego | 2026-11-27 12:54:42 | Re: [PATCH] libpq: Add PQpassfileLookup() |
| Previous Message | David Rowley | 2026-11-27 12:42:02 | Re: pg_upgrade's get_rel_infos_query() query can sometimes be slow |