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 1mKcTv-0008VH-T8 for pgsql-novice@arkaria.postgresql.org; Mon, 30 Aug 2021 08:17:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKcTu-0004ck-6f for pgsql-novice@arkaria.postgresql.org; Mon, 30 Aug 2021 08:17:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKcTt-0004cc-Vv for pgsql-novice@lists.postgresql.org; Mon, 30 Aug 2021 08:17:25 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKcTp-0003et-Da for pgsql-novice@postgresql.org; Mon, 30 Aug 2021 08:17:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=30yEqBUblXvvOUCwnnuZRfYatlLGr1vw0+UCDqyCcHk=; b=Svuvc30Jkxrn6KZsnN5DHIKWSB sOAR7WobOoMq/F3rRkJVMc+gnhUurYw+ZE5A3YORukcwzhR9muePmJOZnbKe36QRyVD2Rs+oiJJDi a9oVoayr0f7yASsX4fxsbJcZBJax1dOq/VHDW9ITwvlP40RixQ5mYUlJU+ulPg6DxLys=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1mKcTm-0003Sw-Dn; Mon, 30 Aug 2021 10:17:18 +0200 Date: Mon, 30 Aug 2021 10:17:18 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Roger Mason Cc: pgsql-novice Subject: Re: trigger fails Message-ID: <20210830081718.GA8307@depesz.com> Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Aug 29, 2021 at 09:58:09AM -0230, Roger Mason wrote: > I have not been able to get this to work: the trigger runs and the > trigger function is called but no new data are inserted into the target > table. Having spent several days on this without result it is time to > give up. Can you provide whole, testable sql script? With create table, and test insert, that should generate something in the target table, that is missing? Best regards, depesz