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 1rp1Gr-004eLW-0J for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Mar 2024 07:30:57 +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 1rp1Gp-00C54F-Eq for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Mar 2024 07:30:55 +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 1rp1Go-00C547-MO for pgsql-hackers@lists.postgresql.org; Tue, 26 Mar 2024 07:30:55 +0000 Received: from wfout7-smtp.messagingengine.com ([64.147.123.150]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rp1Gl-006TbE-Bd for pgsql-hackers@postgresql.org; Tue, 26 Mar 2024 07:30:53 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.west.internal (Postfix) with ESMTP id 6154A1C000A2; Tue, 26 Mar 2024 03:30:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 26 Mar 2024 03:30:49 -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=1711438248; x= 1711524648; bh=KNJLm04t2NOjF97m7fTIjEHxEAwRX5WbQuUmETFYSoA=; b=P SD/v82kWL4+dk0l09wSeqdMSszFpDOP8M5IzbbB9Qmctf/uUMRGe1XrIXjxG7NHs QhhqZjLQ1zHgCbXa95vA/qZGOtEo138kWYq+SzngwOTOhfy8OecxNa/GJ/1vxx0e SaWxgW5E+bbm57MMRMsgqaoATlleHgWjQGK9Ic2UvqDJp1wWFBcfDunQavl4KAFO zEs82xXNcpNavkGxbpFululVoitS3y5BF54Jwy5Xz9Sr2gaka9xkTWcmp1R9WLWr RTNwdpZlSuei7RUrz8rbRm1xVL2LNymXE3C2mVFPW3sDTRIM+0yoFYkpWaIWJdFw J6AbLJSKfbSI2A9bNnpDg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduvddguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeej keffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghl vhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Mar 2024 03:30:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1711438245; bh=EpT6E7/oAJgprWZuHwoQvPcpM55gpV8rUvaxmG43pgg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=OD4JrI6JVn2l+3LhnVh0J9qwNC2emEKb/R4xSQ79jJ25jq4zAmWzvSi+8oJI/WPkq PtHgqy+5fEuZWMi97unpUGWpb2IrYKxS4xOQR/lv9Rq6VwYOkuqSpDZwIs0ekruzE/ 2oUiqAyX6T0YcqBWPYh1NqDAzAOyDxUP8FKw5ps+630iYHMjK1VskGjMFsSVi4/Wi7 Rgtt02sTvtMgtvvhvCioY9dWg3ikPa2dtamt4qDSRUpq5tvnyyj1cjKux4Q8Gt7CYt cIvKe2o+DVmu5jjcJDofdBgBHWkDmsTcSbRdGIM9LFBdMp+tXE0lmQPXQNFs6WuT0g jNy9CedUUMw3g== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id A14A9153; Tue, 26 Mar 2024 08:30:45 +0100 (CET) Date: Tue, 26 Mar 2024 08:30:45 +0100 From: Alvaro Herrera To: Dean Rasheed Cc: jian he , Peter Eisentraut , Aleksander Alekseev , pgsql-hackers , vignesh C Subject: Re: Catalog domain not-null constraints Message-ID: <202403260730.cprszamfv5rx@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-25, Dean Rasheed wrote: > Also (not this patch's fault), psql doesn't seem to offer a way to > display domain constraint names -- something you need to know to drop > or alter them. Perhaps \dD+ could be made to do that? Ooh, I remember we had offered a patch for \d++ to display these constraint names for tables, but didn't get around to gather consensus for it. We did gather consensus on *not* wanting \d+ to display them, but we need *something*. I suppose we should do something symmetrical for tables and domains. How about \dD++ and \dt++? -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ Bob [Floyd] used to say that he was planning to get a Ph.D. by the "green stamp method," namely by saving envelopes addressed to him as 'Dr. Floyd'. After collecting 500 such letters, he mused, a university somewhere in Arizona would probably grant him a degree. (Don Knuth)