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 1wEWYv-0046dv-2i for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Apr 2026 18:08:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEWYu-00Fnik-31 for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Apr 2026 18:08:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wEWYu-00Fnia-1P for pgsql-hackers@lists.postgresql.org; Sun, 19 Apr 2026 18:08:04 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEWYs-000000020Wq-0jRL for pgsql-hackers@postgresql.org; Sun, 19 Apr 2026 18:08:04 +0000 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-7dbce74e537so2112657a34.1 for ; Sun, 19 Apr 2026 11:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776622080; cv=none; d=google.com; s=arc-20240605; b=eauZkfev9bonOw3trHc9rjjFbqH3nzFWRGd/QZiKDn6INny5AucI15a3l+IWIqOU3j EE8Pke3fTwOdgM6K7Xncw4CwHCEY/Jci1girsyrJnGrrtk7c3lSeMTXcNi1ap5ug47Z9 VhOmV/RqoA0g6qovYAsDlIVykXHJkCNb7Xz9XTSf/k9E3TYG91scOLc2UX2/BJ13KQLr 694WNAxGHO0B1RQcffg8qY9mRJJ7ggbK88lpzLiQpvOeMqrFBFRJKhtCSQlW3J2yEJ+Q x+JBQDGirkbuX0v12CHtnJhc/5SWzZ5fDvkVi9fCX5zYC6Qxd07Yzmy0PprZndkyWZlN ZjKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=06R9laPAtc6g9t3CTynWbymmkMPDuso/yMpRrjzvQy4=; fh=ZFa8+CQv1VfMWAAeSNO9YR4W49IzPMAJei2RVH/h+Nk=; b=gixChanKBYE0g5IrBt5z6XVpdwOJkK+3kz5D5JEQGgmtgnQa44iogoaSh/drEHEyhq zVL69/JnMzcEZRFb87QVYU+3TpjTI8HrFH/paLqJgXH8MbsH5znvd4sg5XfE3VpxNX47 Aci68mjrhx9ppUT+5oRxzKwIb6AAY/5o0gPh3/LQhzDmOuzBzUBiJ8ykql81zQ9xg0nv vy58d3esseXX176OdGxoBhxbSSFxMuKSatZnKMAsLOeLoUeAyt5QiUQdrCcgylX2A5qa WkkWyBsvmcKeUz0LzQ2lr4sTKdQXCWzz33grccNgaMb3d+LXTL+mfYzYuQHdwNs9Z9A1 Hfzw==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20251104.gappssmtp.com; s=20251104; t=1776622080; x=1777226880; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=06R9laPAtc6g9t3CTynWbymmkMPDuso/yMpRrjzvQy4=; b=kM/aaGtSPd4pocHTf6P4rLt35EB6Y5cq7tqDh3ApoeJzO4n2NO1XsJK1kKRRXwAI1X FnJ8V7IPEoAUV0SQh45PA4Kp48aKJGobdjBR1iQNenR/4qCxKY0y7U4RLh/Jre2j2QTl D8jn8GNv6b1pgmXJcBb1zcjtRbLVNEta5FJsttynZwimrpiZKmPwjplSQbwcua7KFNe3 QETGYES8z2ww8HO5LSPvU7oLGeKmLRzRyuSIdne8ZqM8XKoEnbWWli5OhjjbatdzPNbK iRrJKhgX2HBpifoWdOLJxxtdKOT96SBVgd5xqvk5NUtZ8I3zAmEae0cWvz+6OV7HMmGK JxOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776622080; x=1777226880; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=06R9laPAtc6g9t3CTynWbymmkMPDuso/yMpRrjzvQy4=; b=ssihOGAd/MYLvCiV/PBxVI8xr2AA+4ShHr+/rCEvaS0jNMHACMhf9OpY77vLVFtQeh rXIPxBpI67raw/gKx7MBEC8aCklJEcx5rZsiS1oSV7QgmDqQX/+E4j4HIITUSDHg3YzZ IHZ8ooLP/Sv9hPU/k+l/2r4eODmJ5bLBUoNirxUO2EPeNgqRI/9A6iNZ2sqUjSs1pvUq 2SbFxyPxG9yYKLWD5fkvY19oQ8pqlGIkR80qw66rR1gTaagtiD+S5ktsc3mxq6MFBGJa AQUPtofZeHME2gyFBwDPZr0Hjn9zqxwligoZI6C5x5Dx6ecqZPWaLKs+r+L6J4TOp9Vb FB6w== X-Forwarded-Encrypted: i=1; AFNElJ+eo3IZsWxnkHwAO9jYHut0PiFaofMg2g996ZK78Y7u+0Y4j1g0qp5ZOd+6ZGdhYOg532TcA/rVoIFdImEy@postgresql.org X-Gm-Message-State: AOJu0YwwypgQ2L84cNFnfKIdrsDS6YK2L2jUtRse7RFFyeMTCWsy4D83 jKw36xMOBnjxvjbgHFCHQUkGdYHZB0hDSu8X1OMkK+8amL58uF35g4hONhQPkzJjv42UhAnGrYY BuuhM4ojMfn3XvP6dyM13qDGe6bPVUikPejtjfWijKQ== X-Gm-Gg: AeBDiesRNR0or59T7nHDN6LxrGH4P1MFE2srJO+uJlHdFnFlO7JuQu/s6QnPfz3aAPy rD7PVFzQDpQ2SbCdYlVTRPAAL4GypHop9EC2ZkFS4U1k0EYADYUgkqEQTOo+e+/9yNvRv/plOBL pVxgjKImR6AF1s3qRB8BYk+VpmpD6oNOIQcxoYA9p4ITmDfde9WQ6ZPoZ9mxMviGQPjQU3/LXDt B2PsxzaYXZPHaUUfJseQ/TtA+eTRRijcp1WxfOAXs0YPp83IJLm2vfWGnL8qjJWf/G2xuwLKV0r wmtWt7ZAv69xx3LQQeA7ePhu1bHuDA== X-Received: by 2002:a05:6820:3094:b0:692:a19b:af70 with SMTP id 006d021491bc7-69462dffd01mr5509043eaf.4.1776622080418; Sun, 19 Apr 2026 11:08:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Paul A Jungwirth Date: Sun, 19 Apr 2026 11:07:47 -0700 X-Gm-Features: AQROBzDIbH-6XbdEty1W5Np0vY6zuDuS7lEEtjCIz9w_vjiD5qhG_Z6QZkXz1qM Message-ID: Subject: Re: DELETE/UPDATE FOR PORTION OF with rule system is not working To: jian he Cc: Kirill Reshke , PostgreSQL-development , Peter Eisentraut Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Apr 16, 2026 at 8:20=E2=80=AFPM jian he wrote: > > On Thu, Apr 16, 2026 at 6:40=E2=80=AFAM 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 =3D = 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! Yours, --=20 Paul ~{:-) pj@illuminatedcomputing.com