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 1tvDlR-002KCZ-8G for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Mar 2025 11:08:41 +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 1tvDkR-002OWg-RD for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Mar 2025 11:07:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tvDkR-002OWY-0n for pgsql-hackers@lists.postgresql.org; Thu, 20 Mar 2025 11:07:39 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tvDkN-0007NG-3A for pgsql-hackers@postgresql.org; Thu, 20 Mar 2025 11:07:38 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id 3B1021383426; Thu, 20 Mar 2025 07:07:33 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Thu, 20 Mar 2025 07:07:33 -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=fm1; t=1742468853; x=1742555253; bh=C GrjPLQkleROfY13oYDDLG/meO9W83xu1rYVSuA3YYA=; b=xleabA+P0rYq9AFdR y/du9I29GvT9A9DM46Lf0LpviUtHMRg80kXAJqvuqZR06ouEvi9zA2P7AkEObkyr qIisNoIxm7LyTA7uIkmKW3F2lLpAYBDqD8DtMvOyh8O4YrjuA2o6gUWOhm36v8Yc 4xkK63cVurQ9wUtkMN4NZcD4U4WlEIZK/hzPqIJtK1NtUPBssfXRVGsledGiOj1X zMggUVNuUIlOp2590MM+kK57MfUXuwCbaJhafcA3uvDcZLjJT2wLdZsD6GgOI9ci rZC1PALuolP8ND5W2zx+ntWdNlQZnwEliDAr+ctiJlhlB3lejEVGpTjPoUxtzMfe fwXPA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeektdegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffeh fffhjeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehjihgrnhdr uhhnihhvvghrshgrlhhithihsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhhushhhrg gshhdrlhgrthhhihgrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgr tghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Mar 2025 07:07:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1742468849; bh=TogwZXGM+U2Dyp83RLPILREmJFJnF6tlYBXrTX8VxRs=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=mwxC4Av/B7sNumR4Y+IRIom1nhS2gU+cfW1BG9UvmkjjI4BdbcmWryUYh5Z8bL2xJ 7auIy/sR6k1ckIdmvCswEONJPWgmL4F970JPcFGwtBWB0YwTCESC8Q5pfTpwRMl+5h BUlA6JfT9knKkwAprGvKgZS9hkkcWh/XbDM0thHmcCCkKjLhc0sbL0Rl27Z33C6YIb YxoeCAUAKAaPTM7R6oJNfrsm8qTQ7CVWWKIDCTGxRHs/HFfFV8UvKzmhKtB6Wp/Gsu i3nFFsFywdNwsY54/HUuwxUwbgOp/h0P2tpkMsg0QQNNp0uyFsbnDqjvsQzATKH6Ja V3fPGpiQElX2A== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id A690687; Thu, 20 Mar 2025 12:07:29 +0100 (CET) Date: Thu, 20 Mar 2025 12:07:29 +0100 From: Alvaro Herrera To: jian he Cc: Rushabh Lathia , PostgreSQL Hackers Subject: Re: Support NOT VALID / VALIDATE constraint options for named NOT NULL constraints Message-ID: <202503201107.67xlajjijvkw@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-20, jian he wrote: > as you can see the output of `\d+ notnull_tbl1` > That means the pg_attribute.attnotnull definition is changed. That's correct, it changed in that way. I propose for the new docs: > > > attnotnull bool > > > This column has a not-null constraint. > > "This column has a possibly unvalidated not-null constraint". The description for the new column would say "the not-null constraint for this column is validated" (or the opposite). My recommendation is to rename the other column from attinvalidnotnull (Rushabh's proposal) to "attnotnullvalid" and invert the sense of the boolean. I think that's less confusing. Thanks -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "If you want to have good ideas, you must have many ideas. Most of them will be wrong, and what you have to learn is which ones to throw away." (Linus Pauling)