Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKc2B-000417-00 for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Jun 2017 02:58:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKc29-0002ir-FH for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Jun 2017 02:58:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKc1R-0001VU-RO for pgsql-bugs@postgresql.org; Tue, 13 Jun 2017 02:57:37 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKc1O-0008Th-RZ for pgsql-bugs@postgresql.org; Tue, 13 Jun 2017 02:57:36 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id AA44A209B5; Mon, 12 Jun 2017 22:57:33 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Mon, 12 Jun 2017 22:57:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=Y2YHAVGjItYEtDCRYXo+boLG16n2cIaw3iqRWzf0ndQ=; b=IAHPRrTp C1qZuVmn/eF2+3kBa2KzN0ZjBqSNwdXY5eiDL3+fRIYbeLZLcO1H/+BUc6FG0Jn5 EAxOG281mSiE7Za2IBQuv6KerP+8U5cw1FmM23jY35C+BDEwY7HnEtAYfCGuOcKm UtIAi+KOF/td2SkERQwiSj/jYNgdopNYe2Uzd7MhzDho/X1WY85mGMrGCYn3BjGG /QabHSaSxUpv3iu0r6uvcojHZgOJjCW9eX3+u2V/kY+RegnbiZDA2NYMm6xBAz+j nUR/4pWDOvlAUZR1Vu462qCmV0vN47JWxQRv9qCVbZ9+2C6siEpOVAgu4nprmNEd Fn6vMMbKqIH5Mg== X-ME-Sender: X-Sasl-enc: gmheKczsPl2SlsUQ46LEbPHTH7RY3QWcelhDQfW/SQaw 1497322653 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 5CEEE241D3; Mon, 12 Jun 2017 22:57:33 -0400 (EDT) Subject: Re: BUG #14699: Statement trigger and logical replication To: konst583@gmail.com, pgsql-bugs@postgresql.org References: <20170609160109.26502.14118@wrigleys.postgresql.org> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Mon, 12 Jun 2017 22:57:31 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170609160109.26502.14118@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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