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 1trvah-00Bnne-MQ for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 09:07:59 +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 1trvag-00Bgvx-5A for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 09:07:58 +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 1trvaf-00Bgvn-Pf for pgsql-hackers@lists.postgresql.org; Tue, 11 Mar 2025 09:07:57 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1trvad-002CBI-2Z for pgsql-hackers@postgresql.org; Tue, 11 Mar 2025 09:07:56 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.stl.internal (Postfix) with ESMTP id 0CB3711401C2; Tue, 11 Mar 2025 05:07:55 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Tue, 11 Mar 2025 05:07:55 -0400 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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1741684074; x=1741770474; bh=y 5wZIt0ieZfw0I038XWSpaRWa+/CJZxp3GtKkk+zIhI=; b=meauoKx1xXdiFpFFl yMNTw94BiDpt4ZIP8d+5w7WemQpMUR2MEDs7VO+bL1UjY2N+U4W9yoIHwwRCLvsi Q78wEFLOIseLu6RHUwzX1pzDxuflhc6Jc/VwCSpRQAHEnv/Lw2w3M6Xxp2U/QLqZ 3GzH7mNJaPn3XUC7rRfpZA83Cb8uixSZ38mAtn+gv+t8GJw9oniM/qtPWjiiYoTi F4twTHVnT2If7V9lZ68ElMok0UydFnDWR8o0ERTl3qBvZqPVEZ8E8ENSrMqyEv1n 8wUuh97EkLWxKvuvKDp/H36tXjKjUGWnIr9KRAFemEJgYgTxWZA/mjCh4tqbF8YZ Tq3vA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvddukeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdehueffhefgueekueef heehgffhuefgfedukeejveduffegffekgeffffevgeehnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeejpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehjohgvlhes tghomhhpihhlvghrrdhorhhgpdhrtghpthhtohepphgvthgvrhesvghishgvnhhtrhgruh htrdhorhhgpdhrtghpthhtohepshhurhgrjhdrkhhhrghrrghgvgesvghnthgvrhhprhhi shgvuggsrdgtohhmpdhrtghpthhtoheprghshhhuthhoshhhrdgsrghprghtrdhoshhsse hgmhgrihhlrdgtohhmpdhrtghpthhtohepjhhirghnrdhunhhivhgvrhhsrghlihhthies ghhmrghilhdrtghomhdprhgtphhtthhopehsuhhlrghmuhhlsehgmhgrihhlrdgtohhmpd hrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Mar 2025 05:07:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1741684072; bh=Vvb/Pm93Nq6HixVK66qHvcVWoUjbtC2l5HkL2YPCFLQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=l7NCCwGr65EQNzabmK5kG5TBySnC0LeK2q5kVYQxVJbQG5qanP5Ztvt8Gcy7u1HSC FXSWf5efAFnTb4aF/As+P+rHAPwLJZvkDoRoT8X2PMq5dCwbe+BYXslaTnJ6yXw/dU inNzzB+U6XGSnakvlGUakKPPbG/KCUtv+rGxSqK2DKa0Qp7Jh5LpgIR4WDOvk8gt2V qg6rxHpVHGZNyNO6DDVz3ZkAW8VxegFvG+JEMMTje6aX8JbvE9u7S6kR4EUysFt6nJ /kiHsiExbG0SgItQaO1tlHcQgWbJl4CoJpF+aM79i2fHHveN+6a+1tzU0C1QqnF/R7 bzX8SfUOjj5pw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 35E3791; Tue, 11 Mar 2025 10:07:52 +0100 (CET) Date: Tue, 11 Mar 2025 10:07:52 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Amul Sul Cc: Peter Eisentraut , Ashutosh Bapat , jian he , PostgreSQL-development , Joel Jacobson , Suraj Kharage Subject: Re: NOT ENFORCED constraint feature Message-ID: <202503110907.nxcopwq53ivx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Feb-28, Amul Sul wrote: > Yeah, that was intentional. I wanted to avoid recursion again by > hitting ATExecAlterChildConstr() at the end of > ATExecAlterConstraintInternal(). Also, I realized the value doesn’t > matter since recurse = false is explicitly set inside the > cmdcon->alterEnforceability condition. I wasn’t fully satisfied with > how we handled the recursion decision (code design), so I’ll give it > more thought. If I don’t find a better approach, I’ll add clearer > comments to explain the reasoning. So, did you have a chance to rethink the recursion model here? TBH I do not like what you have one bit. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Para tener más hay que desear menos"