From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Константин Евтеев <konst583@gmail.com>
Subject: Re: [BUGS] BUG #14699: Statement trigger and logical replication
Date: Fri, 16 Jun 2017 21:08:44 -0400
Message-ID: <c020d3a1-55be-20a7-3689-cb9ad4554f8e@2ndquadrant.com> (raw)
In-Reply-To: <CAAqA9PRLsBsKj4AKyA1G22MN64ORA6s0pD4ZXYecYNmLbZu_Xw@mail.gmail.com>
References: <20170609160109.26502.14118@wrigleys.postgresql.org>
<cf941ded-1f8e-08b0-d864-e83c1768f27b@2ndquadrant.com>
<CAAqA9PRLsBsKj4AKyA1G22MN64ORA6s0pD4ZXYecYNmLbZu_Xw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 6/16/17 09:13, Константин Евтеев wrote:
> 2017-06-13 5:57 GMT+03:00 Peter Eisentraut
> <peter.eisentraut@2ndquadrant.com
> <mailto:peter.eisentraut@2ndquadrant.com>>:
>
> I think this is all working correctly and as intended.
>
> But then, why data copy for init logical replication fires statement
> trigger. May be it is also not nedeed?
> Or this feature needs to be mentioned in documentation?
I don't know. Hackers?
The issue is that the logical replication initial data copy fires a
statement trigger for INSERT, because it's implemented as a COPY internally.
By contrast, the normal apply worker does not fire any statement
triggers (because they are not "statements").
We could adjust one or the other or leave it as is.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, pgsql-hackers@postgresql.org, konst583@gmail.com
Subject: Re: [BUGS] BUG #14699: Statement trigger and logical replication
In-Reply-To: <c020d3a1-55be-20a7-3689-cb9ad4554f8e@2ndquadrant.com>
References: <20170609160109.26502.14118@wrigleys.postgresql.org> <cf941ded-1f8e-08b0-d864-e83c1768f27b@2ndquadrant.com> <CAAqA9PRLsBsKj4AKyA1G22MN64ORA6s0pD4ZXYecYNmLbZu_Xw@mail.gmail.com> <c020d3a1-55be-20a7-3689-cb9ad4554f8e@2ndquadrant.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