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

From: Kristo Marijo <M(dot)Kristo(at)rewe-group(dot)at>
To: Greg Sabino Mullane <htamfids(at)gmail(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: AW: BUG #19043: jdbc connection url is not case insensitive
Date: 2025-09-08 06:39:47
Message-ID: GVXPR06MB86817393048FC0F1C42194A4CD0CA@GVXPR06MB8681.eurprd06.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello,

thanks for the answers and you are absolutely right.
I think then we can close this issue.

Best Regards
Marijo
________________________________
Von: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Gesendet: Samstag, 6. September 2025 02:41
An: Kristo Marijo <m(dot)kristo(at)rewe-group(dot)at>; pgsql-bugs(at)lists(dot)postgresql(dot)org <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Betreff: Re: BUG #19043: jdbc connection url is not case insensitive

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. If you are unsure or already opened a link or attachment please contact your local IT helpdesk.

An alternate view: if you really care about case, double quote the database on creation, as per your "e.g.":

create database "testDB";

At that point, your psql connection will work. But as with all non-lowercase objects, extra care will be needed and it will need to be quoted in some contexts. It's so much easier to just leave database, schema, table, and column names as lowercase. Then everything just works.

Cheers,
Greg

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Laurenz Albe 2025-09-08 08:31:11 Re: BUG #19034: Recursive function with sql_body can replace an existing function but can not be created on it's own
Previous Message David G. Johnston 2025-09-07 22:50:47 Re: BUG #19034: Recursive function with sql_body can replace an existing function but can not be created on it's own