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 1wKqSQ-001LIO-2P for pgsql-hackers@arkaria.postgresql.org; Thu, 07 May 2026 04:35:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wKqSN-0022Wu-2q for pgsql-hackers@arkaria.postgresql.org; Thu, 07 May 2026 04:35:27 +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 1wKqSN-0022Wm-1x for pgsql-hackers@lists.postgresql.org; Thu, 07 May 2026 04:35:27 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wKqSK-00000000act-2uBP for pgsql-hackers@lists.postgresql.org; Thu, 07 May 2026 04:35:26 +0000 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-83537a80ab6so196955b3a.1 for ; Wed, 06 May 2026 21:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778128524; x=1778733324; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=W3OFOa7aYjMzb5CHlWTi4D+uI7zoxvtyPA+CH/iATVc=; b=Xnu1UEYKYkxGFV8N714Qb6qyMOh39/njVxqwEDPbvw8AvyzPmo1p8AmmLot69HTb3M nHmaVU/JWcpb1+mWBKDxxLaq1wOmm7M8uX68C7RoE/Ye4SBATQFBOlXXkt4mRD+A9XJr ON8lmUSa5hWXqAwFK/axU76lHGabJADyWmGwpplXxBaYpTFYZOiDDIOiKZWG/I6GKWnI ch4q2WuG3k2cqc/KeJLnxEirCGE8G+gMkCeMLs6QRe3SYSusbg11CJD9gOIIR532WzpU 4YeHZiAcHfzTgU3/olKwMYS9M8hEgs7T8GcWjnnb5BWSWOB6+SsUZfyF5fq6CvreiZ2U h5NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778128524; x=1778733324; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=W3OFOa7aYjMzb5CHlWTi4D+uI7zoxvtyPA+CH/iATVc=; b=C02Ecn2ljOPVIpaE/3S1Zaz6X8xTyGkSSGBSdOJJ0Zhv3U+gOK5cgzYtq4kTCJjplf tEJqjb6OZh2XjrVzFK3kM/BCCWZybddz2sKh0aPclsRoOmCNh2peFkTMAJkMhQGM8bMI FfzjH6cAiNneoaVpO/37QFnmEzM/N4wyWvIQpkpii/0MqilAlP+Pbwt0LIrmXgtnf+rW EVEjjbHKhZcKtdvlEpeE41WPVkeM0LGvEz7KBvALEL2qhx05fJt+giuBkIiMqepjPGaX ZgnFolhiWun5TThyth4yuzQawKriiC8s+MqJwPVpzVKC6P1zF2CsKxHMqTleHCM2G031 Fd/g== X-Forwarded-Encrypted: i=1; AFNElJ9cexmC5+g4byIhQ6lfIuTOVAj66cn8UIhufNRIMwZBjA3Lz3bbb3cXl2D76rAw9r4yYuNElnTY7oGKLH9N@lists.postgresql.org X-Gm-Message-State: AOJu0YzZ+G0BJXLfXCdDmbDieYW9c4p0Cd84uyk9puqQQFO06W1mcvPe xmcxBmjhlma6isg7Daudk8iuv9ofbpKSyXGCoF9WkI7CzwER26ljILgzG+uz3FzY X-Gm-Gg: AeBDieslI/GMfn9hfg3dz/gIwKxAcE1ikYWHT5fRm/lPwvzcqaCrnGFBNx3NwvFJQQf tGwF5o039Wnv9MCnE1JdAvDm/c4RMdNX2HjcSpQvidYPwQHYHKXLzw+BGxyPL9WbMXEEYorhE42 fPAP5ySOanJsjXV93MzBsKJZ6+ZvNug7Z3PPscjGMMHo/S3cHPL0+Ya9IQ9AlawsVpGOo/uoTWJ 8jtPEImhrKnhpMCqWDwfU7ulGM44UlQJUG7Fr4khL+L6wEMQUgOkSSyzQrMexw7CKJKUDSVGjzG IfiogKpbDbaRlhXaQpKQ9stc5o9L7zsZ4NGfxkwRpjBVRzMYmXZbyr36b7A9l3oALZrdcWeJKBv q2vm5A92Lm0vqVqHfgRVQlhr/+mE6ttqG1hI2PVJnhb5jKFqe23oZg+3gWz57z7u47L2of1Mpzt 811I+G7Jmu9BO4yfgLqrj3TuaHc+5gvRJC1nLUbndx9o1qnjTrx3vl X-Received: by 2002:a05:6a00:9083:b0:835:5aa3:2dab with SMTP id d2e1a72fcca58-83a5b9d8257mr6361509b3a.6.1778128524352; Wed, 06 May 2026 21:35:24 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-839682a52cesm6905445b3a.57.2026.05.06.21.35.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2026 21:35:23 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: FOR PORTION OF does not recompute GENERATED STORED columns that depend on the range column From: Chao Li In-Reply-To: Date: Thu, 7 May 2026 12:34:43 +0800 Cc: Peter Eisentraut , jian he , SATYANARAYANA NARLAPURAM , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <27BD5D23-19C9-4FD1-8935-9C788C3C9869@gmail.com> References: To: Paul A Jungwirth X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 7, 2026, at 01:13, Paul A Jungwirth = wrote: >=20 > On Wed, May 6, 2026 at 4:39=E2=80=AFAM Peter Eisentraut = wrote: >>=20 >> On 05.05.26 23:50, Paul A Jungwirth wrote: >>> On Wed, Apr 22, 2026 at 11:03=E2=80=AFAM Paul A Jungwirth >>> wrote: >>>>=20 >>>> Good catch! I removed that line in v7 (attached). I also included = your >>>> test change to compute the range len by hand. Also a rebase was >>>> necessary after d3bba04154. >>>=20 >>> This needed a rebase. v8 attached. >>=20 >> This patch fails the injection_points/isolation test for me. It = looks >> like it causes a server crash. Check please. >=20 > Sorry, I didn't have injection_points enabled, but now I see it too. > The attached v9 fixes it. >=20 > Yours, >=20 > --=20 > Paul ~{:-) > pj@illuminatedcomputing.com > Hi Paul, I didn=E2=80=99t review this patch earlier because, from the subject, I = thought it was only about recomputing generated stored columns. I just = noticed that the patch also changes the inheritance-table path, and I = posted another patch for the inheritance-table bug. Please see [1]. I tried applying the new tests from my patch on top of this patch, and = it looks like this patch still does not fix the multi-inheritance case. So I=E2=80=99d like to check with you how we should proceed. I think = there are two options: 1. Keep this patch focused on the generated-column issue described in = the subject, and use my patch to fix the inheritance-table bug. 2. I can continue from this patch and extend it to fix the = multi-inheritance case as well. Please let me know what you prefer. [1] = https://www.postgresql.org/message-id/4245F94D-84F1-4E05-BF81-C458A6CF9901= %40gmail.com Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/