Re: Logical Replication postgres 10.5

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Logical Replication postgres 10.5
Date: 2019-05-28 07:19:46
Message-ID: dae95cae-a14a-1bf7-aa1c-1784d4c0ed78@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 28/5/19 8:21 π.μ., Mai Peng wrote:
> Hello,
> Is Logical Replication ignore foreign key constraint ? How does it possible ?
The apply process on the subscriber runs with |session_replication_role| set to |replica, this limits trigger firing, excluding normal triggers . FK constraints in pgsql are implemented with triggers,
hence the behavior you are observing.
|
> Thank you
>
>

--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2019-05-28 08:09:23 Re: Logical Replication postgres 10.5
Previous Message Laurenz Albe 2019-05-28 05:59:37 Re: Logical Replication postgres 10.5