pglogical Replication CONFLICT

From: Steven Forrester <s_forrester(at)outlook(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: pglogical Replication CONFLICT
Date: 2016-08-24 15:24:10
Message-ID: DB5PR07MB08695897799BD647D33D0F098CEA0@DB5PR07MB0869.eurprd07.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am using PostgreSQL 9.4 with pglogical replication. I have 1 provider node and 1 subscriber in 2 separate locations. The subscriber subscribes to 1 database on the provider. Every evening a function runs that DELETE's & INSERT's to tables that are replicated to the subscriber and causes CONFLICT messages to be logged:-

CONFLICT: remote UPDATE on relation db1.schedule. Resolution: (null).
CONFLICT: remote UPDATE on relation db1.schedule (tuple not found). Resolution: skip.

When I run the individual DELETE & INSERT statements to the schedule table manually I don't get any conflicts.

I have also compared the provider and subscribers data and they appear to be consistent with each other.

Any help or suggestions would be much appreciated.

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2016-08-24 16:26:13 Re: ON CONFLICT does not support deferrable unique constraints
Previous Message Andreas Joseph Krogh 2016-08-24 12:05:37 ON CONFLICT does not support deferrable unique constraints