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 1wRmHm-002gid-1H for pgsql-hackers@arkaria.postgresql.org; Tue, 26 May 2026 07:33:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wRmHk-003h55-0V for pgsql-hackers@arkaria.postgresql.org; Tue, 26 May 2026 07:33:09 +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 1wRmHj-003h4x-1J for pgsql-hackers@lists.postgresql.org; Tue, 26 May 2026 07:33:08 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159] helo=fhigh-c8-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wRmHh-00000001TxL-2ool for pgsql-hackers@lists.postgresql.org; Tue, 26 May 2026 07:33:08 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2B1577A0069; Tue, 26 May 2026 03:33:02 -0400 (EDT) Received: from phl-imap-07 ([10.202.2.97]) by phl-compute-04.internal (MEProxy); Tue, 26 May 2026 03:33:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; 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=fm2; t=1779780781; x=1779867181; bh=rIZdWegN0DggGiLU9l4uj3seWuANB8/SsWCHlAhCWCM=; b= DpRrEiJq+KFcSN+mLhsQ7ajG7Q16e0R/juIGMFl69z9b7hUSWnh0QJHBgVBAFBX+ v2uMWu0P9EYs309oCpiTrQ5aA1EqndlQyp6y6beY9cS4rIPjUgtqJmzsZdMMsO/U GrbCxWDt2oHHiHWMez90DuLLUd93MF5P+yTm5fWXgxm/9mv8rs1oKFNGgaGhhWil OxpwRn6+KYfzIrNQhy9GdQcJEXDkirE37WbMvEouMqS31ovQlqmQF3qqLRCJZZOG TAnBqhYiKjQU/gAjxApprHa6Xq9B5Spd2C5b65dMIVJrn5GaNpEMi4DJ4JVE3Zj+ /XMiCHZukjZomJW1McTASQ== 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=fm3; t=1779780781; x= 1779867181; bh=rIZdWegN0DggGiLU9l4uj3seWuANB8/SsWCHlAhCWCM=; b=P 7075kSRm3ewAFdJ/uktweNhmlJMQh8knGKzRHEhfZH0x/UZXTxWfXEe6uaD41WcP KfsoDNTKT3BD/4dUoOnO/SCcWh6i0TOphOvQyQ6AgDlgj0x+Rvtv3i5h9rgmXalx 2zDj4nGV53AxNQX/OfPl7jzN5c0aiO1ScOkWC9sFBXuFhSKQKvV1X6sCmxJ6ycaQ pJN0gcrvplz80opx1h/IiNU+4TKGqWTreXe2MJHmdVL1teOZNer+HKd2BcUTz1dJ mu48wusvL/VjsDGgjWXbuRafJyV/jutI3MDJwhNmd0ywqd9ix806mBlujPeIyHz9 +4YnYl8W9hdkHVaFZiTqg== X-ME-Sender: X-ME-Proxy-Cause: dmFkZTGl62qVeM5pqnajEpNMfCevfjc63ui2ZTOLamwUtkmHaMeEL2pF30arHNpgpmOv3c N3zU/eP/+1n7gQfHfCCYaZpwUMMjmzBA2BvL3MoVrwpordijNy4CBOrGjM1Gw+688+DqPK NkaYBzyt3HoblzQbK74fUU/8iERkC1t1xdzei0MPFb9K4Fda6fw0A6FLLLDRqpyZ7/5wlZ hDwKvu1qUGcLZkpGORGS+ypTRJgGwps6Vn1rMqWVEWdWefCvUfdkacQHwH4LnYJi0E7h/L ICe5RXbUazPVZN108sldSZ8DMEgw8UU2fE17RXi1U1UlSADVcME84RVSAJUQMvwFYzhPZB aoiQbgVNYY3J5mDmcc6bvhfvccbixdCyfsDTxasohwodpS4o15x8e0v5+2tFlWj4uZMfZB emS9kJoxSF9pPfN22CKu0WxpGe4Buo86dUR7peCRzusooB4cBBE/6ouhVk9EpJWN6FBodh y9JYk/+nzWpITBHxU/h8wZDsoSXMxK18eGRRU8ySjX8QK9VbYuTRqwVZ6C+QKWM/JnwgtV A1wRFMnwZpmSw92i3Rt7+nglJzk87NScDbajfWAMU9GRaZ0JPGphqk5JPFDOlu0xJsbTCh yz1eBPxV4hP387//5KcDYNcbwmdUOdb3IfpFn+mWeIbmlXxXbn1IOjdRLM5A X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 9743F1EA006B; Tue, 26 May 2026 03:33:01 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Tue, 26 May 2026 09:32:39 +0200 From: =?UTF-8?Q?=C3=81lvaro_Herrera?= To: "Chao Li" , "jian he" Cc: "L. pgsql-hackers" , "Andrew Dunstan" Message-Id: In-Reply-To: References: Subject: Re: Fix bug of CHECK constraint enforceability recursion 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 2026-05-26, Chao Li wrote: >> On May 26, 2026, at 14:05, jian he wrot= e: >> Overall, i tend to think that we should reject ALTER TABLE ALTER >> CONSTRAINT if it >> would result in the parent constraint being enforced while the child = constraint >> is not enforced. Yeah. > I am not against the idea of "rejecting ALTER TABLE ALTER CONSTRAINT i= f=20 > it would result in the parent constraint being enforced while the chil= d=20 > constrain is not enforced", but I=E2=80=99m afraid it=E2=80=99s too la= te for PG19. So,=20 > I guess we still need to fix the issue for 19, right? I think this is a bug that we need to fix in 19 as well =E2=80=94 I mean= we should reject the ALTER TABLE. --=20 =C3=81lvaro Herrera