Re: Logical replication failing when foreign key present

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>, Thom Brown <thom(at)linux(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Logical replication failing when foreign key present
Date: 2017-03-03 18:41:06
Message-ID: 441fdba6-78d4-3950-aec2-1a3136f00f28@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 1/22/17 18:07, Petr Jelinek wrote:
> On 22/01/17 18:50, Thom Brown wrote:
>> There's an issue which I haven't seen documented as expected
>> behaviour, where replicating data to a table which has a foreign key
>> results in a replication failure. This produces the following log
>> entries:

> Hi, thanks for report.
>
> Looks like I missed AfterTriggerBeginQuery/AfterTriggerEndQuery when
> moving the executor stuff around. Attached should fix it.

This has been fixed.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2017-03-03 18:42:11 Re: patch: function xmltable
Previous Message Alvaro Herrera 2017-03-03 18:15:11 Re: patch: function xmltable