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 1uudqs-00EJgX-Sa for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Sep 2025 21:20:11 +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 1uudqr-00AYGr-9P for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Sep 2025 21:20:09 +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 1uudqr-00AYGj-0f for pgsql-bugs@lists.postgresql.org; Fri, 05 Sep 2025 21:20:09 +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 1uudqo-000mBq-0H for pgsql-bugs@lists.postgresql.org; Fri, 05 Sep 2025 21:20:08 +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 585LK6QM1529705; Fri, 5 Sep 2025 17:20:06 -0400 From: Tom Lane To: m.kristo@rewe-group.at cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19043: jdbc connection url is not case insensitive In-reply-to: <19043-e6955a06c7befbf7@postgresql.org> References: <19043-e6955a06c7befbf7@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 05 Sep 2025 06:28:15 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1529703.1757107206.1@sss.pgh.pa.us> Date: Fri, 05 Sep 2025 17:20:06 -0400 Message-ID: <1529704.1757107206@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > when creating a database in Postgres with the name e.g. "testDB", postgres > creates a database in lowercase testdb. > So far so good, but when trying to connect via psql and passing as database > name "testDB" the connection fails, because it says the database does not > exists. > In my opinion, the libq library should also be case insensitive and > automatically convert this to a lowercase "testdb" and not return an error. Then it would become impossible to connect to databases that have upper-case or mixed-case names. Our general position on such matters is that automatic downcasing happens in SQL commands, but not in any other context (such as command-line arguments or connection strings). regards, tom lane