Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQxNv-0004Hd-ML for pgsql-general@arkaria.postgresql.org; Tue, 21 Apr 2020 18:12:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jQxNu-0004nh-Jl for pgsql-general@arkaria.postgresql.org; Tue, 21 Apr 2020 18:12:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQxNt-0004na-BZ for pgsql-general@lists.postgresql.org; Tue, 21 Apr 2020 18:12:38 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQxNq-00084f-HJ for pgsql-general@lists.postgresql.org; Tue, 21 Apr 2020 18:12:36 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 02B36625; Tue, 21 Apr 2020 14:12:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 21 Apr 2020 14:12:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=t ImUU45FazhkT1XEYwS/PiejU/JZHinY7qLT9EF706U=; b=o0MvvbljvOvuQNqrA I/26LX4cb0Ee0gfFMjIeekhnlmB/3OQ4qI9XKzEuT4UieSrOQHonCeqA2GYHzLRq FXIgLcilgn8CrChHKsl1y2mJqPlXMhzJBJVKxbMXdBiVoTZQ3sfo/W9kDzKwnsjz B/MpUGfN22x7aaIJ1iXGIh7M1sEPUjE2nJ14zWiUReJODhELS4SY+rSi4JWPVRmP HCUeBXMhYk3g09MXofEc6iS4at2/ZJTxmCoccDp+nIOrMK5RGWPf/hOW9fHXrJAK bYRJKZOg+VkSOSXbmNw+8cf81FHb9oEmL3CzAmSCBHR5R02fdT5dmHec/0XiI+ol OcDng== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=tImUU45FazhkT1XEYwS/PiejU/JZHinY7qLT9EF70 6U=; b=4YrBnOlc1Vn5Tp1y1uALchtmvj4nm7c77W+oHM/DQe6GBZUvclc+XQWet 7tn7s3oZLhEHfZwJ16VF4RykauwakR8z0jXH+uw6GyzcIJ2R2wvG0AEyNUciHxRV GGk1IWdt3zrGAD/yTGQdbcyhUwwHPiIka26VW0ceAGcwaVzfuy2gPDYeCIkkLZIF 1mlEWg0CfS6CLTo7lriGj2QIjd39AkQwELAsQFMdJhLnnzIQZH9nf4fobGhSDONZ sJ2mOnjG/zb1KDsjx543+QAUWJVMMysK4BVLOmvhqeeTaQ1MmrouafRAJbudqQmO QwngzzNjO7w19jXPzTOrTpTV+L5OA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeehgdduvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeeljedruddu fedrvddtjedrudefkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (97-113-207-138.tukw.qwest.net [97.113.207.138]) by mail.messagingengine.com (Postfix) with ESMTPA id ED5C33280068; Tue, 21 Apr 2020 14:12:30 -0400 (EDT) Subject: Re: Triggers and Full Text Search * To: Ericson Smith , Andreas Joseph Krogh Cc: pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Tue, 21 Apr 2020 11:12:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/21/20 11:04 AM, Ericson Smith wrote: > I think COPY bypasses the triggers. No: https://www.postgresql.org/docs/12/sql-copy.html "COPY FROM will invoke any triggers and check constraints on the destination table. However, it will not invoke rules." > > Best Regards > - Ericson Smith > +1 876-375-9857 (whatsapp) > +1 646-483-3420 (sms) > > > > On Wed, Apr 22, 2020 at 12:32 AM Andreas Joseph Krogh > > wrote: > > På tirsdag 21. april 2020 kl. 19:24:10, skrev Malik Rumi > >: > > [...] > > I am not (yet) posting the trigger code because this post is > long already, and if your answers are 1) yes, 2) no and 3) > triggers often work / fail like this, then there’s no point and > we can wrap this up. But if not, I will happily post what I > have. Thank you. > > This is too much prose for the regular programmer, show us the code, > and point out what doesn't work for you, then we can help:-) > -- > Andreas Joseph Krogh > -- Adrian Klaver adrian.klaver@aklaver.com