Skip site navigation (1) Skip section navigation (2)

Re: BUG #1581: Problem with capitalised DB names...

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Marcus v(dot) Scotti" <m(dot)scotti(at)fry-it(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1581: Problem with capitalised DB names...
Date: 2005-04-10 22:23:16
Message-ID: 20050410222316.GA13159@wolff.to (view raw or flat)
Thread:
Lists: pgsql-bugs
On Tue, Apr 05, 2005 at 18:09:25 +0100,
  "Marcus v. Scotti" <m(dot)scotti(at)fry-it(dot)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.

In response to

Responses

pgsql-bugs by date

Next:From: Russell SmithDate: 2005-04-10 22:45:13
Subject: Re: BUG #1577: round(dp) function does not round to nearest integer properly
Previous:From: Michael FuhrDate: 2005-04-10 21:34:52
Subject: Re: BUG #1547: CREATE TYPE AS error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group