Re: BUG #19043: jdbc connection url is not case insensitive

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: m(dot)kristo(at)rewe-group(dot)at
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19043: jdbc connection url is not case insensitive
Date: 2025-09-05 21:20:06
Message-ID: 1529704.1757107206@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Greg Sabino Mullane 2025-09-06 00:41:43 Re: BUG #19043: jdbc connection url is not case insensitive
Previous Message David G. Johnston 2025-09-05 21:13:48 Re: BUG #19043: jdbc connection url is not case insensitive