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 1t3WKf-00D3Ya-GG for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Oct 2024 08:03:05 +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 1t3WJe-007OSA-Qy for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Oct 2024 08:02:03 +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 1t3WJd-007ORO-O4 for pgsql-hackers@lists.postgresql.org; Wed, 23 Oct 2024 08:02:02 +0000 Received: from mail1.dalibo.net ([51.159.93.128] helo=mail.dalibo.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t3WJb-002Q4V-2b for pgsql-hackers@postgresql.org; Wed, 23 Oct 2024 08:02:00 +0000 Received: from karst (82-65-23-130.subs.proxad.net [82.65.23.130]) by mail.dalibo.com (Postfix) with ESMTPSA id 15C5127848; Wed, 23 Oct 2024 10:01:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1729670515; bh=pGCMYOaJxhiU3pwQ7a18BCS5pjDkuopwGPdiHgQoBwY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iy272z21ma8jM67Zq5K6anxNb8QpATrbSw+qKe6hZ8F2bbm3wa6knvmJXaw08vrwQ Mmh+lNHdn/9ag3tLo3/Z7eUlxlcTpSsKpGWic4/uJraqYi6ebUuJshDHKwr8GQe7mM Qt6AeBrepPY/4DjLAlFlUbctXpH/4s8xdpM/Uo+8= Date: Wed, 23 Oct 2024 10:01:54 +0200 From: Jehan-Guillaume de Rorthais To: Alvaro Herrera Cc: Tender Wang , Junwang Zhao , "pgsql-hackers@postgresql.org" , Alexander Lakhin , Guillaume Lelarge , Michael Paquier Subject: Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Message-ID: <20241023100154.661231ca@karst> In-Reply-To: <202410221432.3qtqbk2q6o7q@alvherre.pgsql> References: <20241022162312.63021cc6@karst> <202410221432.3qtqbk2q6o7q@alvherre.pgsql> Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 22 Oct 2024 16:32:33 +0200 Alvaro Herrera wrote: > On 2024-Oct-22, Jehan-Guillaume de Rorthais wrote: > > > On Fri, 18 Oct 2024 16:50:59 +0200 > > Alvaro Herrera wrote: > > > > For branch 14, I opted to make it delete the constraints on detach. > > > This isn't ideal but unless somebody wants to spend a lot more time on > > > this, it seems the best we can do. Leaving broken constraints around > > > seems worse. > > > > Keep that in mind, and move ahead to the next level: self-FK on partitioned > > table! ;-) > > > > https://www.postgresql.org/message-id/flat/20230707175859.17c91538%40karst#0dc7b8afd8b780899021bbb075598250 > > Yeah. I pushed these patches finally, thanks! Great! Many thanks Alvaro and Tender for your work on this issue.