Re: BUG #1581: Problem with capitalised DB names... - Mailing list pgsql-bugs

From Bruno Wolff III
Subject Re: BUG #1581: Problem with capitalised DB names...
Date
Msg-id 20050410222316.GA13159@wolff.to
Whole thread Raw
In response to BUG #1581: Problem with capitalised DB names...  ("Marcus v. Scotti" <m.scotti@fry-it.com>)
Responses Re: BUG #1581: Problem with capitalised DB names...
List pgsql-bugs
On Tue, Apr 05, 2005 at 18:09:25 +0100,
  "Marcus v. Scotti" <m.scotti@fry-it.com> wrote:
>
> Description:        Problem with capitalised DB names...
> Details:
>
> When trying to grant database privileges to a group of users there is no way
> to do this if the database name is capitalised (i.e. db-name = Test). The
> error message when performing the grant operation:
>
> grant all on DATABASE test to group tgroup;
>
> is:
>
> ERROR:  database "test" does not exist
>
> I have used capitalisation an a number of databases, so this now seems to
> require me to rename them all in to lower-case...

You need to use double quotes (") around database, table or column names that
are not all lowercase.

pgsql-bugs by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: BUG #1547: CREATE TYPE AS error
Next
From: Bruce Momjian
Date:
Subject: Re: problem with Win1251 (Cyrillic)