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 1s36Qo-009SFY-I8 for pgsql-general@arkaria.postgresql.org; Sat, 04 May 2024 03:51:26 +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 1s36Ql-00EkH0-RG for pgsql-general@arkaria.postgresql.org; Sat, 04 May 2024 03:51:24 +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 1s36Ql-00EkG4-GF for pgsql-general@lists.postgresql.org; Sat, 04 May 2024 03:51:24 +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.94.2) (envelope-from ) id 1s36Qj-001Rfz-Pl for pgsql-general@lists.postgresql.org; Sat, 04 May 2024 03:51:23 +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 4443pHgw2808876; Fri, 3 May 2024 23:51:17 -0400 From: Tom Lane To: jian he cc: Adrian Klaver , Magnus Hagander , David Gauthier , pgsql-general@lists.postgresql.org Subject: Re: \dt shows table but \d says the table doesn't exist ? In-reply-to: References: <7c3a1c91-566a-46f7-82b5-b47eac58c500@aklaver.com> <2746167.1714770911@sss.pgh.pa.us> Comments: In-reply-to jian he message dated "Sat, 04 May 2024 11:40:56 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2808874.1714794677.1@sss.pgh.pa.us> Date: Fri, 03 May 2024 23:51:17 -0400 Message-ID: <2808875.1714794677@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk jian he writes: > make it case insensitive? That would just move the problem around; that is, now we'd have people complaining because they'd asked for "\d foo" and were getting results for tables Foo and FOO. By and large, I'd expect people using mixed-case table names to get accustomed pretty quickly to the fact that they have to double-quote those names in SQL. I don't see why it's a surprise that that is also true in \d commands. regards, tom lane