From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: konst583@gmail.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #14699: Statement trigger and logical replication
Date: Mon, 12 Jun 2017 22:57:31 -0400
Message-ID: <cf941ded-1f8e-08b0-d864-e83c1768f27b@2ndquadrant.com> (raw)
In-Reply-To: <20170609160109.26502.14118@wrigleys.postgresql.org>
References: <20170609160109.26502.14118@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 6/9/17 12:01, konst583@gmail.com wrote:
> I have found a bug in logical replication and statement trigger on
> subscriber.
> Statement trigger works on initialisation table statement.
> But then it doesn't work.
The inserting of rows from the stream is not a "statement". Therefore,
statement triggers are not fired for that.
The initial data copy is implemented as a COPY command, which is why
statement triggers fire for that.
I think this is all working correctly and as intended.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, konst583@gmail.com
Subject: Re: BUG #14699: Statement trigger and logical replication
In-Reply-To: <cf941ded-1f8e-08b0-d864-e83c1768f27b@2ndquadrant.com>
References: <20170609160109.26502.14118@wrigleys.postgresql.org> <cf941ded-1f8e-08b0-d864-e83c1768f27b@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