From: Andres Freund <andres@anarazel.de>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: 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 18:22:34 -0700
Message-ID: <20170617012234.k373n2zh4vlnweit@alap3.anarazel.de> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 2017-06-16 21:08:44 -0400, Peter Eisentraut wrote:
> 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.
Leave it as is.
- Andres
--
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: andres@anarazel.de, peter.eisentraut@2ndquadrant.com, pgsql-hackers@postgresql.org, konst583@gmail.com
Subject: Re: [BUGS] BUG #14699: Statement trigger and logical replication
In-Reply-To: <20170617012234.k373n2zh4vlnweit@alap3.anarazel.de>
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> <20170617012234.k373n2zh4vlnweit@alap3.anarazel.de>
* 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