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 1txKjj-006rj3-6c for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Mar 2025 06:59:39 +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 1txKjh-00GL3R-MF for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Mar 2025 06:59:37 +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 1txKjh-00GL3J-22 for pgsql-hackers@lists.postgresql.org; Wed, 26 Mar 2025 06:59:37 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1txKjf-001Bok-1M for pgsql-hackers@postgresql.org; Wed, 26 Mar 2025 06:59:36 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id AD31311401D2; Wed, 26 Mar 2025 02:59:34 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 26 Mar 2025 02:59:34 -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=fm2; t=1742972374; x=1743058774; bh=t m9p7eSncbFQTmcBs03i09D1ZMQcaEVb8b2Bl4pB8J8=; b=hg+HLNTrqD0/dadLt TehQK/nT1hMRMPxGrZ0GW8U9IAOAgrDpw18wCqZrnECJx2bktsw751/DtO+fKPBa KnEfc+56WF8x6dPwAwyFxk+suf2JOwcN/ZB/MT6ttn6BxNa9gIJIZG6uzz8k3p7Y rMT2NYSH4svt9bAoejZmxDypZu89nRpX5ZhL+nZNXBjR5/T/E3hYf5CIt2VzAwNe Kg4NOJ4DKXtawRp051EKQ+rSXXx8X15Y6yUS0Qiwk61aYcPZXUWi9/Uhj3+xG05K kczaB/T7YrMlNVesuuhcFeevZfbC5U7I30I+RufbZVI4qj3pF274uADGQAKiAB6F c+MOA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduieegkeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdehueffhefgueekueef heehgffhuefgfedukeejveduffegffekgeffffevgeehnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeekpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehjohgvlhes tghomhhpihhlvghrrdhorhhgpdhrtghpthhtohepphgvthgvrhesvghishgvnhhtrhgruh htrdhorhhgpdhrtghpthhtohepshhurhgrjhdrkhhhrghrrghgvgesvghnthgvrhhprhhi shgvuggsrdgtohhmpdhrtghpthhtoheprghlvgigrghnughrrgdrfigrnhhgrdhoshhsse hgmhgrihhlrdgtohhmpdhrtghpthhtoheprghshhhuthhoshhhrdgsrghprghtrdhoshhs sehgmhgrihhlrdgtohhmpdhrtghpthhtohepjhhirghnrdhunhhivhgvrhhsrghlihhthi esghhmrghilhdrtghomhdprhgtphhtthhopehsuhhlrghmuhhlsehgmhgrihhlrdgtohhm pdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorh hg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 26 Mar 2025 02:59:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1742972371; bh=29FpXEyOERDWGxUUH9uf126AWr+uK6yp/rRKrNXRpMM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=SCkbTddUri3mv88dDJf2LetuTy6WUEt6FC9qFlqcV1dYpQDCZ7NpntnYPu8IEUeQ4 fyP032Yu8MewS5A+52r99PTz/ML19FcFqRi5jAelciP8VB/97eKbrromuzPG/nSSNd YqlpT0FS6xLBMWpggGH/FNCqVet/GKQ+21YH+kkDuOdtPLmV3NTXY+BII6/3LtzCvS jr+vU6+YoTHdn7gR+G9xoXkdnhg7Vpgvnql//r8jOzGdcY29vrLtfyLeRAIqvj4QHC +Wgo22msOAOFKdm457t8ldhcklwsMeEOYRlqC0XO3KlIE+/Uw3q8pJGm1YV+E+6Gpy M/PVWIsGwiozA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 3CBC885; Wed, 26 Mar 2025 07:59:31 +0100 (CET) Date: Wed, 26 Mar 2025 07:59:31 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Amul Sul Cc: Peter Eisentraut , Ashutosh Bapat , jian he , PostgreSQL-development , Joel Jacobson , Alexandra Wang , Suraj Kharage Subject: Re: NOT ENFORCED constraint feature Message-ID: <202503260659.is27tpldi4zy@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-Mar-26, Amul Sul wrote: > The reason for the change is to revert to the behavior before commit > #80d7f990496b1c, where recursion occurred regardless of the > changed flags. This is also described in the header comment for > ATExecAlterConstrDeferrability() (earlier it was for > ATExecAlterConstraintInternal): > > * Note that we must recurse even when the values are correct, in case > * indirect descendants have had their constraints altered locally. > * (This could be avoided if we forbade altering constraints in partitions > * but existing releases don't do that.) Umm, why? Surely we should not allow a partition tree to become inconsistent. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ #error "Operator lives in the wrong universe" ("Use of cookies in real-time system development", M. Gleixner, M. Mc Guire)