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 1qaeQP-00A0Pr-PH for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Aug 2023 15:45:10 +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 1qaeQN-00DJPj-Nd for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Aug 2023 15:45:07 +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 1qaeQM-00DJPN-Ji for pgsql-hackers@lists.postgresql.org; Mon, 28 Aug 2023 15:45:07 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qaeQI-001RKk-U3 for pgsql-hackers@lists.postgresql.org; Mon, 28 Aug 2023 15:45:05 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 678223200D94; Mon, 28 Aug 2023 11:45:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 28 Aug 2023 11:45:00 -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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1693237499; x= 1693323899; bh=sVZn/mG0Ae/vDpmWQujAsPAKapC2WtUYBePVBGrACRk=; b=j 33Mp6z9pFZEBrdU89kE5Ju2fnmWtCUtD3Im2nQU26O8jBSke3q61GT3kb706d/So mU++EwUYTnNrrhiUU/Pue2WCxjY7tZ5fvElNPQw0oLIfvjl6Z0MDBq7Gv3j4vjVA y5geHBCHJEn/ipST8Zc+bsFpCoXxt+ei9bQhj7XyyXSIeRN34H7rA2ngxWxkXJnG yZjjHoRfCbVb954bL+TFUMCJKRcg+sN5e3Ewt6hMqAUeH5kHV3dNRsoBhPwwKbhk 3zLUJsb0QLgJ0b+p/gNjlcbdf42gizCennGXT7U9/4+WSm3LUF+SGUZsz8hIaKV1 PUXhaISJqwQmVJG31d2FA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefgedgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Aug 2023 11:44:59 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id EA07FA9; Mon, 28 Aug 2023 17:44:55 +0200 (CEST) Date: Mon, 28 Aug 2023 17:44:55 +0200 From: Alvaro Herrera To: Peter Eisentraut Cc: Dean Rasheed , pgsql-hackers@lists.postgresql.org Subject: Re: cataloguing NOT NULL constraints Message-ID: <20230828154455.pfihomnzwqvb4yrz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <099f86fc-59e9-89f5-0791-a892075651dc@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Aug-28, Peter Eisentraut wrote: > It looks like we forgot about domain constraints? For example, > > create domain testdomain as int not null; > > should create a row in pg_constraint? Well, at some point I purposefully left them out; they were sufficiently different from the ones in tables that doing both things at the same time was not saving any effort. I guess we could try to bake them in now. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Doing what he did amounts to sticking his fingers under the hood of the implementation; if he gets his fingers burnt, it's his problem." (Tom Lane)