Re: unidirectional logical replication logging issue

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-25 10:19:33
Message-ID: CAA4eK1Jq7A-oF8w2+NSZhhN6Hdi4t=83m-1auKaSrttgZV8dxQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 24, 2026 at 4:46 PM Fabrice Chapuis
<commeilmeplait(at)gmail(dot)com> 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2026-11-25 10:38:51 Re: Unify parallel worker handling for index builds and instrumentation
Previous Message Tatsuo Ishii 2026-11-25 10:00:27 Re: Row pattern recognition