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 1temJA-00FaJE-U3 for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Feb 2025 02:35:33 +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 1temJ9-009YSg-Aw for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Feb 2025 02:35:31 +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 1temJ9-009YSX-2V for pgsql-bugs@lists.postgresql.org; Mon, 03 Feb 2025 02:35:31 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1temJ6-002xTb-0O for pgsql-bugs@lists.postgresql.org; Mon, 03 Feb 2025 02:35:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5132ZQ16292237; Sun, 2 Feb 2025 21:35:26 -0500 From: Tom Lane To: Chris BSomething cc: PostgreSQL Bug List Subject: Re: Bug in psql In-reply-to: References: Comments: In-reply-to Chris BSomething message dated "Mon, 03 Feb 2025 08:29:30 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <292235.1738550126.1@sss.pgh.pa.us> Date: Sun, 02 Feb 2025 21:35:26 -0500 Message-ID: <292236.1738550126@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Chris BSomething writes: > On Mon, 3 Feb 2025 at 04:36, David G. Johnston > wrote: >> Since \d can only show information limited to the super-class relation, >> and not specific subtypes, the information for the foreign table subtype >> needs to be made available somewhere. That place is \det > I don't know what that means, but when two menu items have the same text, > but a different function, Houston, we have a problem. It could be argued that at the level of detail that's possible in this help summary, their functions *are* the same. The family of commands that includes \dE will show you Schema, Name, Type, Owner, which are properties that all relations have so they are sensible to show in a list that might include any type of relation. On the other hand, \det shows Schema, Table, Server (and \det+ includes FDW options), so it is only applicable to foreign tables. But we don't have the space in \h output to go into the specific output columns. That's pretty much left to the user to discover by trying things. Having said that, if you have concrete ideas about how to make the help output clearer, let's hear them. (I'm pretty sure we've rearranged \h's explanation of the \dtisv family before, so it's not like this text is set in stone.) But "this is a bug and somebody else should fix it" is not going to cause anything to happen, mainly because it's not very clear what would be better. regards, tom lane