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 1t9Oiq-009pV4-Lp for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2024 13:08:20 +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 1t9Oio-00984I-1O for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2024 13:08:18 +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 1t9Oin-009842-MM for pgsql-hackers@lists.postgresql.org; Fri, 08 Nov 2024 13:08:18 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t9Oil-000o5o-Gb for pgsql-hackers@lists.postgresql.org; Fri, 08 Nov 2024 13:08:17 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5D25C11400EE; Fri, 8 Nov 2024 08:08:14 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Fri, 08 Nov 2024 08:08:14 -0500 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=fm3; t=1731071294; x=1731157694; bh=M N9X2n66vkXLqFWZwZx0a8rCskRMEsikr9QY8pjvf/M=; b=LI66I5A29do6OF5iI IYUl1zV6lhbmGBkl6wx8F50/h+jyDfPgTg42AXBr05pTYI6AS+j7WUtS6xBRHFKm jdbNCXTJMFlQh8fLVZ320kBRl1bU1T5lGF2G+Cxyy7a5nAWTVOMFihHXpPUWuhkB uVfiTojTkRF5rHwEXjcF9WHsTVh/1AZVaq4ux17SoZIsxDJmv3yS4psm+m8mFpqb liIQ8NWKYBN9Zdj9h0HRd4SZIboM2wU+qu80SftqCAuJmexl/qhrF+YvfgIo5klI ZXUm4+v7sVP83uFOfH5OfyGUnjllWb3IRuFckwbkHisElhk/mHFB1mQUwD7XTw3d rMGiA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtdeigdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecu hfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfej jefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtg hpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjhhirghnrdhunhhi vhgvrhhsrghlihhthiesghhmrghilhdrtghomhdprhgtphhtthhopehtnhgurhifrghngh esghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhs thhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Nov 2024 08:08:13 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1731071290; bh=AeK/rLCoAdp9iJmoZD3+M1kLYXG20v4cfJBFjOuJ2/Q=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=AR64Ft6nOjWJU2DT4mAgnJZHIFDI6S1thHI3hP3GxQtXojws08/6itop1DHloYJca klc5xb0Z3aMEQC183JpV2NSfxfedpFg73EmikUy8cRjVQKd95pUmbUfY8G1euWAZRB t5QlNPmkCxqzpk16e2RNdTOUoZMe7t1+VEIzG2d4Gckjsce6dMQrE8yj2o4c942MeT yF60pA/5lXvb2vJMPU0fOqgtMlO4v5kARjDk3T55GEIANybVNIQS/3KtIab5u7QB0e WRTF1MaA7Tsi5/rzpG1MDp9vTBc8hndpb4UBSIFgYnSgY1d3Wt1E6nOAjT3TToJT5d XMj8wqapgZl6Q== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 5C140E3; Fri, 8 Nov 2024 14:08:10 +0100 (CET) Date: Fri, 8 Nov 2024 14:08:10 +0100 From: Alvaro Herrera To: jian he Cc: Pg Hackers , Tender Wang Subject: Re: not null constraints, again Message-ID: <202411081308.nxj6dy2xui6a@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-Nov-08, jian he wrote: > > Here's v11, which I intended to commit today, but didn't get around to. > > CI is happy with it, so I'll probably do it tomorrow first thing. > > > v11 still has column_constraint versus table_constraint inconsistency. > > create table t7 (a int generated by default as identity, constraint > foo not null a no inherit, b int); > create table t7 (a int generated by default as identity not null no > inherit, b int); > create table t8 (a serial, constraint foo1 not null a no inherit); > create table t8 (a serial not null no inherit, b int); > > i solved this issue at [1], Ah yeah, that stuff. Your commit message said it was a refactoring so I hadn't paid too much attention to it, but it's in fact not a refactoring at all. I included it with a large comment explaining why we do it that way and that we may want to remove it in the future. I also included these four sentences above in the tests, and pushed it after checking that the CI results are clean. Yesterday I verified that pg_upgrade works with the regression database from 12 onwards. I know the buildfarm uses a different way to do the pg_upgrade test, so there's no way to know if it'll work ahead of time. But we'll see what else the buildfarm has to say now that I pushed it ... -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/