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 1rxRz2-008mBB-0F for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Apr 2024 13:39:24 +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 1rxRz0-0054Bb-5i for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Apr 2024 13:39:22 +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 1rxRyx-00549k-Uy for pgsql-hackers@lists.postgresql.org; Thu, 18 Apr 2024 13:39:21 +0000 Received: from fout8-smtp.messagingengine.com ([103.168.172.151]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rxRyu-003Sbl-PD for pgsql-hackers@lists.postgresql.org; Thu, 18 Apr 2024 13:39:18 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id 0F3121380247; Thu, 18 Apr 2024 09:39:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 18 Apr 2024 09:39:15 -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=fm3; t=1713447555; x= 1713533955; bh=KJyJNPPqILb3AILT+yD3NEKzZARpnHBpw1tVTCoFrFQ=; b=G MQOti3kxYoKbXvEDMVJ9W5IML2mACMWp20ctCNzV/tvB/73pWBz/Gs+qaTePXoT2 Qr/+vp7vnppVGQQesRAqjiEiDFVGQuYdpXmtYqS6OENBGzxdkbKJl6AVRUfWDmQ1 WjUH9MShHrDNMJAJ6RZ31dMDC66zfQgW5Qtyv3swA8pCwlXtipSip1QwCJcvLCRM 1/f8qu4Dtl42csRpTJm6FH+Ojv8ZfZk8ARQJkehHawZ7AmTlEmjHBzFTcypns0bm VrixsLGfnKVH1TfzXYb2t1obiCDFaZxzdLVTmV7Y64wevlkQ5PfjIS1dzXtVT86/ mpkBWI1dXc4jFzSjRaHhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudektddgieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Apr 2024 09:39:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1713447552; bh=edqJOPPoHPG1S/re/2qgAaRi5ELIz9xYDp6tQpLlm4c=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=R4evwS5dEpbwDa1Pnc8O2hsxy9Jfgn1wBhxIzpJLxRVf8obA3Vu8kFWnxZ7V1xdUO UBffGLhYSQvigNkzfuk34GRyrDieS6d521qAc5AOsnZGyChilP27iLITm4LkyBuk3T 7R/Ykpy/l4C7Qggo+ytMb+Xxt1qhuFz4gH8X0A/8DbhgvgPWaA3HgBiEuKiuwaauKF 3nzPv7CaJHTJQ0f5XlHlXWSizRp16oKnx4TETvdoOopmJgP38So1fj3yUJ/OafDaKG xgPBmLS6RJCexLIJbIzJqxEu/WPmxdq5OdIJl1LqTpYgcQxRHnHFAW9u4umQJuWXRn KLsQFHx30IPbA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 6BB23385; Thu, 18 Apr 2024 15:39:12 +0200 (CEST) Date: Thu, 18 Apr 2024 15:39:12 +0200 From: Alvaro Herrera To: Andrew Bille Cc: Dean Rasheed , Peter Eisentraut , Robert Haas , pgsql-hackers@lists.postgresql.org Subject: Re: cataloguing NOT NULL constraints Message-ID: <202404181339.ql3wlpryz6kw@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-Jan-25, Andrew Bille wrote: > Starting from b0e96f31, pg_upgrade fails with inherited NOT NULL constraint: > For example upgrade from 9c13b6814a (or REL_12_STABLE .. REL_16_STABLE) to > b0e96f31 (or master) with following two tables (excerpt from > src/test/regress/sql/rules.sql) > > create table test_0 (id serial primary key); > create table test_1 (id integer primary key) inherits (test_0); I have pushed a fix which should hopefully fix this problem (d9f686a72e). Please give this a look. Thanks for reporting the issue. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "I apologize for the confusion in my previous responses. There appears to be an error." (ChatGPT)