From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Logical Replication postgres 10.5
Date: Tue, 28 May 2019 10:19:46 +0300
Message-ID: <dae95cae-a14a-1bf7-aa1c-1784d4c0ed78@matrix.gatewaynet.com> (raw)
In-Reply-To: <DBB6941F-757E-4C8A-AAFA-AF5651635EB2@webedia-group.com>
References: <DBB6941F-757E-4C8A-AAFA-AF5651635EB2@webedia-group.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: achill@matrix.gatewaynet.com, pgsql-admin@lists.postgresql.org
Subject: Re: Logical Replication postgres 10.5
In-Reply-To: <dae95cae-a14a-1bf7-aa1c-1784d4c0ed78@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox