Re: Database Name - case sensitivity - Mailing list pgsql-admin

From Guillaume Lelarge
Subject Re: Database Name - case sensitivity
Date
Msg-id CAECtzeVEvxcYNGeBnZX158DA9wKTiApUfvWYYxCkBjXPXmcVtA@mail.gmail.com
Whole thread Raw
In response to Database Name - case sensitivity  (Edwin UY <edwin.uy@gmail.com>)
List pgsql-admin
Hi,

Le mar. 21 janv. 2025 à 12:02, Edwin UY <edwin.uy@gmail.com> a écrit :
Hi,

Is there any way to rename a database?
I have some databases that are in upper case and some that are a mix of upper and lower case and I want to rename them all as lowercase.
For example, I have a TEST and a TestforBlah for example. These are just sample names.

You need to use double quotes. For example:

ALTER DATABASE "TestforBlah" RENAME TO testforblah;

Regards.


--
Guillaume.

pgsql-admin by date:

Previous
From: Edwin UY
Date:
Subject: Database Name - case sensitivity
Next
From:
Date:
Subject: Commit with wait event on advisory lock!