Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dM2Rs-0001s0-Ff for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Jun 2017 01:22:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dM2Rq-0001Fz-4j for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Jun 2017 01:22:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dM2Ro-0001Ed-Oq for pgsql-hackers@postgresql.org; Sat, 17 Jun 2017 01:22:44 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dM2Ri-000460-0M for pgsql-hackers@postgresql.org; Sat, 17 Jun 2017 01:22:44 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0BD0C20808; Fri, 16 Jun 2017 21:22:36 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 16 Jun 2017 21:22:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=ebNvmFEOf+NTfpHztCYlpZdeze8Ijavmen5ubsMcamc=; b=dloX7wMr UK9+Bo8NHVocSpLFo9+hbGVw8K887Jab5hlxvKng2WqBkWmpJ4TnKGOcehWHj1Tl WBjY+lL2P8+VU0ythF7kvd6GQTsQqdOsQB3/w0JnF47zebJxH3HDlODqvbmmFTFs lpWYnejUiOncrPXgScqt46Le1NQS0n2p/tdYynef59PNdZRls0aGZ9mrzoQYPQFQ MK62utF3EkcZGiI0oQRd19KVPl0OfO8QkXhtMW8ayEqXDJRseOJxVRbghuxPeTzq YZiF0fJi2ZL7prqp1Nxarh87ZHNHechHJUtJirh4GCrMD2ThXbvQtc24Tx6AB3u6 t1yI7LJipFt4ig== X-ME-Sender: X-Sasl-enc: r5+ilWsjyUq5EUTITEGuEFNQx3CsrTAvSB3aYyAMs/yc 1497662555 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id BD6097E865; Fri, 16 Jun 2017 21:22:35 -0400 (EDT) Date: Fri, 16 Jun 2017 18:22:34 -0700 From: Andres Freund To: Peter Eisentraut Cc: pgsql-hackers , =?utf-8?B?0JrQvtC90YHRgtCw0L3RgtC40L0g0JXQstGC0LXQtdCy?= Subject: Re: [BUGS] BUG #14699: Statement trigger and logical replication Message-ID: <20170617012234.k373n2zh4vlnweit@alap3.anarazel.de> References: <20170609160109.26502.14118@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org 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 > > > >: > > > > 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