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 1qOfAU-008ZsP-1C for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2023 14:07:09 +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 1qOfAR-004ui4-Cc for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2023 14:07: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 1qOfAR-004uht-39 for pgsql-hackers@lists.postgresql.org; Wed, 26 Jul 2023 14:07: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 1qOfAI-001gki-7D for pgsql-hackers@lists.postgresql.org; Wed, 26 Jul 2023 14:07:04 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7CA0032008FE; Wed, 26 Jul 2023 10:06:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 26 Jul 2023 10:06:56 -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=fm3; t=1690380416; x= 1690466816; bh=xEKlJomwgjeTdWuNGAntXKGkFgYYSqluPfDqMRObmV4=; b=N 7ff6RkT6EP+M/tegG1+5gKdxJOBJ3GWIgDpHNopVf+SbAy0RVwY+AzL52bJre9Uf pASJ9ZYm67xjzseZnFo9whA8LdPjxDGgnB0TgLHW4zEigcB0EOm85b9CRbx3NKQy aPeBraecOsG3UcHJb7IpmPcDqTydNX3gxk02IyvMMiJTlKmdLo/Byxw6iRWLh0/N AvYOEC/J10qop6aJmm/WKJE7J7+wxmltFwP5KQYs3fREVUn1eIUyZkXzCXDhLEY/ Isz/HNEdZtoEqvaDcCzOqYWXezpaoNRw1eq4mDsGQzIUJpHxkuPtYCJ/0pX2v0ux dDDdC9feBzqozquWBORyA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedriedvgdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 26 Jul 2023 10:06:54 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 278ACE3; Wed, 26 Jul 2023 16:06:53 +0200 (CEST) Date: Wed, 26 Jul 2023 16:06:53 +0200 From: Alvaro Herrera To: Dean Rasheed Cc: Robert Haas , Peter Eisentraut , pgsql-hackers@lists.postgresql.org Subject: Re: cataloguing NOT NULL constraints Message-ID: <20230726140653.czw23sezc6dwyrvr@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230726134939.2zdmokgjwqsiknum@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Jul-26, Alvaro Herrera wrote: > On 2023-Jul-26, Dean Rasheed wrote: > > > The new \d+ output certainly makes testing and reviewing easier, > > though I do understand people's concerns that this may make the output > > significantly longer in many real-world cases. > > Yeah, at this point I'm inclined to get the \d+ version committed > immediately after the main patch, and we can tweak the psql UI after the > fact -- for instance so that they are only shown in \d++, or some other > idea we may come across. (For example, maybe we could add \dtc [PATTERN] or some such, that lists all the constraints of all kinds in tables matching PATTERN.) -- Á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)