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 1rpluK-008WBk-UZ for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Mar 2024 09:18:50 +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 1rpluJ-00AJfj-VI for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Mar 2024 09:18:47 +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 1rpluI-00AJfa-LD for pgsql-hackers@lists.postgresql.org; Thu, 28 Mar 2024 09:18:47 +0000 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rpluE-006r1N-1Q for pgsql-hackers@lists.postgresql.org; Thu, 28 Mar 2024 09:18:45 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 854BC13800FF; Thu, 28 Mar 2024 05:18:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 28 Mar 2024 05:18:41 -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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1711617521; x= 1711703921; bh=prmc0eyLlUL6IQVb1D7Q+xQ+StPYHF9uvZ0OMbdLLto=; b=P 51UA7EGUn/Fbc9gloGJGdvOEfSY4JvdMI0gkZwJ7gzJCWl3t23/zenxhY3U8eh4y MjCRJUuMyyzLH0TfqllHimJY2rYQPpNVVeW3iPtWUzruy8TQoVH8xwsCOrb3jl9k 03S0LUfFbBlzgv61A6HpLX21deZXRUTt8m9GzUMP+zSp6qpcaeiylxF/qjmtnyXF ahIWmKW+aR/9Fcb/Q69GiJD3D0JzskQ9Gx4aR2uEUv5Ck920Sjf+1sngHGYtQeUS qUfQXG8lzk38QxzeQQ133Yorm0huOqS/NQWSU9zOXI3R3O3HRkKdRXF2fXm0KIas ZkIQ+g9tORccsaLz/Yttg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddulecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqeenuc ggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeffgfdu fffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghr rhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Mar 2024 05:18:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1711617518; bh=skb8hC4ZjR8OF0lY6xo2o7FDMgLD6tqVLc5FhGIDq+8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=gMXZcIvzKVUSUmoLDj/63pYm/M16/TnSN5e3zO1irQtdUJjdUl96H1n7YIYL8bVWY r4Krq0c0QH2pdzdwQuen1VcfSGv99rdigV38uQ4VEo83LvRlkabb2wx1DZmY0NScdb iUX11gO8J69xFHxmfbIYdm70Uy4Z3IXB6C+vTDEg5qpOUMQH6APhpX7ks8o8uV8oIz aeI9ZgGrKysFCbbdrARUt9iiwWOUNhGK5u5Q4FwpwXgHieWwOah5nYD5/ULkZ9wdCn /nChiYCby+es9shhPcO8vw+VQBBr3TS6c5R6ztlipT0V7jS7BXtt7d3CSIZkho2j0I IScLLkpiPPC3Q== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 5AFB83A3; Thu, 28 Mar 2024 10:18:38 +0100 (CET) Date: Thu, 28 Mar 2024 10:18:38 +0100 From: Alvaro Herrera To: Tender Wang Cc: jian he , PostgreSQL Hackers Subject: Re: Can't find not null constraint, but \d+ shows that Message-ID: <202403280918.7jasjav4emkt@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 2024-Mar-28, Tender Wang wrote: > RemoveConstraintById() should think recurse(e.g. partition table)? I'm not > sure now. > If we should think process recurse in RemoveConstraintById(), the > function will look complicated than before. No -- this function handles just a single constraint, as identified by OID. The recursion is handled by upper layers, which can be either dependency.c or tablecmds.c. I think the problem you found is caused by the fact that I worked with the tablecmds.c recursion and neglected the one in dependency.c. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "No nos atrevemos a muchas cosas porque son difíciles, pero son difíciles porque no nos atrevemos a hacerlas" (Séneca)