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.96) (envelope-from ) id 1wHHc6-0071gc-2V for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Apr 2026 08:46:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wHHc6-00D7oc-0D for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Apr 2026 08:46:46 +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.96) (envelope-from ) id 1wHHc4-00D7oT-2z for pgsql-hackers@lists.postgresql.org; Mon, 27 Apr 2026 08:46:45 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wHHc2-000000030A3-2GOO for pgsql-hackers@postgresql.org; Mon, 27 Apr 2026 08:46:44 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 442F8EC14B6; Mon, 27 Apr 2026 04:46:42 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Mon, 27 Apr 2026 04:46:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; 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=fm1; t=1777279602; x=1777366002; bh=Ma7LzsyhI2dw36Qa/s8ZBXbHb9Z+1Qal tHCYDSR5J1E=; b=WIE3Uncso0heMmIhQck150Go0K0vAmmY/kp31K8bPgqTzNOO b32Vv6iYkqY392L9O0X+lRB/d215HfhT1gBc6Myfmxrp8Mxpm3jly2NLSRH0jp+U M47lTTxMJehp/2YbtEK9tQqEeew/+rHYQz37TmfVYNI9h3o6WOYmsZ943CpDtNfE 1aLsWylPtp2GfvAVDEcwON3VTh6T1n5BXOlPbfr8nJlWcrItM1eQIlNqvJrstSAi lKnv3rK7kcftgZi8amlhHWTzNAIKTJP7xIgDxsUJza0DyxHbranie46KCZPRTadR dkK//MYtZYnoPgYY2lzQsmRJbe42OclZzZCGQQ== 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-sender:x-me-sender:x-sasl-enc; s=fm2; t=1777279602; x= 1777366002; bh=Ma7LzsyhI2dw36Qa/s8ZBXbHb9Z+1QaltHCYDSR5J1E=; b=q SMJPCqyGVRySvy02fzi1Vw+/voBDB9XpdRQ3KFJQ2BygwYoAcU9MVflkzecsbQfl ptBRE6wMMDQP5txSXRbU2vKeSy6YDAUb9xjbSNCoip7UdC1TuwU046EOAIVvbv6S HbLo292yxvTqiVbVTRZ6bZWAUZsnmdLN8UNhLCr109AIWt1NHeH1rnjmCVK8CVv7 rFnbTvCJEpT4NcIBFDUZKM5hDW2bWvEH36XOpIPOSjglGeljaxhBapN2Uk9amRhY X5OVJrvKxaS07PPjWHcrLcxVXyXS1+KYd9CNoYMK/Z2H3RahkJZl8hAYdQtiCk13 m6Q+8j7d0VsjuQp0cT+iA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdejkedvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeejhfevhedttefgfffhhfeffefggffhffelgfeiueeukeehvdeh vdefheffvdefueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdpnhgspghrtghpthhtohep gedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphhjsehilhhluhhmihhnrghtvg gutghomhhpuhhtihhnghdrtghomhdprhgtphhtthhopehjihgrnhdruhhnihhvvghrshgr lhhithihsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhgvshhhkhgvkhhirhhilhhlse hgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshht ghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 27 Apr 2026 04:46:41 -0400 (EDT) Message-ID: <84ba50a2-c181-4a93-b505-7b59d73891f3@eisentraut.org> Date: Mon, 27 Apr 2026 10:46:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: DELETE/UPDATE FOR PORTION OF with rule system is not working To: Paul A Jungwirth , jian he Cc: Kirill Reshke , PostgreSQL-development References: Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 19.04.26 20:07, Paul A Jungwirth wrote: > On Thu, Apr 16, 2026 at 8:20 PM jian he wrote: >> >> On Thu, Apr 16, 2026 at 6:40 AM Paul A Jungwirth >> wrote: >>> >>> I only have two small suggestions: >>> >>> Please use '[1, 11)' syntax to match the other tests. >>> >>> Breaking these long lines would be nice. For example: >>> >>> +CREATE RULE fpo_rule1 AS ON INSERT TO fpo_rule >>> + DO INSTEAD UPDATE fpo_rule FOR PORTION OF f2 FROM 1 TO 4 SET f1 = 2; >>> >> Please check the attached v2. >> >> V1 only has DO INSTEAD rules, adding one DO ALSO rule would make the >> test coverage more robust. > > Thanks for those changes. This looks great to me! committed