Hi,

After upgrading to PostgreSQL 18, we started seeing numerous
update_origin_differs messages in the PostgreSQL logs for a unidirectional
logical replication setup.

Our configuration is relatively simple:

   -

   One publisher and one subscriber.
   -

   Both databases are on the same PostgreSQL instance.
   -

   The subscription is configured with origin = 'any'.
   -

   track_commit_timestamp = on.
   -

   The subscriber is not supposed to receive direct application updates.

Example:

LOG: conflict detected on relation "public.table1":
     conflict=update_origin_differs
DETAIL: Updating the row that was modified locally
        in transaction 478887529
        at 2026-10-15 10:36:16.753439+02.
CONTEXT: processing remote data for replication origin "pg_139879339"
        during message type "UPDATE"

We did not observe these messages in PostgreSQL 17, as conflict logging was
introduced in PostgreSQL 18.

The replication continues working normally, but these messages can generate
a significant amount of log data, particularly because the DETAIL includes
the full local and remote rows.
This can lead to the filesystem becoming completely full.

My use case is this one:
I stop logical replication and reload data in source table and in
destination table, then I reactivate logical replication. The table
contains million of rows.
when massive update are executed on the source table, messages fill the
postgres log.

It seems there is no easy way to disable logging specifically without
disabling track_commit_timestamp

The same behaviour is observer with copy_data = true

Would it make sense to introduce a configuration parameter to control the
logging of these non-blocking conflicts?
Thanks for your help

Regards,

Fabrice

Reply via email to