Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sp7dX-00GlYO-Nf for pgsql-general@arkaria.postgresql.org; Fri, 13 Sep 2024 14:51:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sp7dX-004M0D-A9 for pgsql-general@arkaria.postgresql.org; Fri, 13 Sep 2024 14:51:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sp7dW-004LuV-Dc for pgsql-general@lists.postgresql.org; Fri, 13 Sep 2024 14:51:02 +0000 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sp7dS-000yjY-VT for pgsql-general@lists.postgresql.org; Fri, 13 Sep 2024 14:51:01 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id 02971114025F; Fri, 13 Sep 2024 10:50:58 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Fri, 13 Sep 2024 10:50:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1726239057; x=1726325457; bh=L+pxRfTaI3jPDgOx2MnnkxFaQlsg7tLKza7YtXR1b7o=; b= h2jEiJMrC3ab9PdQl13eJ6/cw/5q2l0SZZedNM0ocpJFpyrYQ0RvE/Q5fTwDG4Ls Nfzttb7nijz0MymXpJ0vkVNq1GLRDlosZzgZOh704axYhlaxrVOFaAI4/98bHFSq WYkRnsxzP21dJY7NvHZFMh92Uu582aQcpHxzMBOnMlqjB67U79PHA5+p0WCM96ET 4f0U7OgDAwlGdQjIFVxSFgzr4WtjXUzn3WyFpPGs21rNIxJIRfgVumJCcl+7LlS1 NUzxgcJUz3y6budpUx29S4igqLO28zKWMEd+9zFxVd1U7FgRwpH4x6aSYphtKrr4 VAEY3tDo6NdgGyUszrOw/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1726239057; x= 1726325457; bh=L+pxRfTaI3jPDgOx2MnnkxFaQlsg7tLKza7YtXR1b7o=; b=h yirJ0PQf3AHsHBUBDypVTYVwvaOz1UubZcy0BYN9SynMWTuEfFx4Sm4gkzvB0z3i AwPWYdMmcgj/E7Tfsq3EyIRGuSzVs4VxIEPgSfonzkbXtS782zc8vHNCvYqGk87N X9AzwJCowm4BQDi5RT6YDKHQu9Uu/VoCOCZcEmxu19abeZYpJtm0y6ilL7G7LCf1 vUHSOA+tKLGOd6HPG3Uoga1ZTzlY4msEE/V8GTBDZI+FTLzHpKspxp5dqrN0ppCG jXMQ4l2KjOqvhSi3wisXnt9WQOua58VVVhMrSudTnELMT65AG9BeQ/dZWSUwA3+L 1HS4ne6x+tfhoWdIMDPWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudejjedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhephfeviefhveelffeftdeh udekveefhfeftdegieefveetfffgfeehtdfftedutedtnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtoheprhhoughrihhgohgsuhhrghhoshhmvghllhgrsehgmhgrihhlrdgtohhm pdhrtghpthhtoheplhgvrghrnhgvrhgurghtrggsrghsvgelleesghhmrghilhdrtghomh dprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgv shhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Sep 2024 10:50:57 -0400 (EDT) Message-ID: Date: Fri, 13 Sep 2024 07:50:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Manual query vs trigger during data load To: Juan Rodrigo Alejandro Burgos Mella , yudhi s Cc: pgsql-general References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/13/24 02:58, Juan Rodrigo Alejandro Burgos Mella wrote: > Hello, I find it unlikely that the trigger will work properly, since the > reserved fields of the OLD subset have no value in an INSERT I'm not seeing that the OP is asking for OLD.* values, they are just looking to include the result of a lookup on another table in the INSERT. > > Atte > JRBN > -- Adrian Klaver adrian.klaver@aklaver.com