dbTalk Databases Forums  

[BUGS] BUG #1581: Problem with capitalised DB names...

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1581: Problem with capitalised DB names... in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marcus v. Scotti
 
Posts: n/a

Default [BUGS] BUG #1581: Problem with capitalised DB names... - 04-10-2005 , 02:21 PM







The following bug has been logged online:

Bug reference: 1581
Logged by: Marcus v. Scotti
Email address: m.scotti (AT) fry-it (DOT) com
PostgreSQL version: 7.4.7
Operating system: Linux
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...

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)

Reply With Quote
  #2  
Old   
Bruno Wolff III
 
Posts: n/a

Default Re: [BUGS] BUG #1581: Problem with capitalised DB names... - 04-10-2005 , 05:06 PM






On Tue, Apr 05, 2005 at 18:09:25 +0100,
"Marcus v. Scotti" <m.scotti (AT) fry-it (DOT) com> wrote:
Quote:
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.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
  #3  
Old   
Bruno Wolff III
 
Posts: n/a

Default Re: [BUGS] BUG #1581: Problem with capitalised DB names... - 04-11-2005 , 12:01 PM



On Mon, Apr 11, 2005 at 09:37:08 +0100,
"Marcus v. Scotti" <mvscotti (AT) gmail (DOT) com> wrote:
Quote:
Thanks... (maybe include this in the manuals, I couldn't find this
information...)
It is:
http://developer.postgresql.org/docs...AX-IDENTIFIERS

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
  #4  
Old   
Marcus v. Scotti
 
Posts: n/a

Default Re: [BUGS] BUG #1581: Problem with capitalised DB names... - 04-11-2005 , 01:08 PM



Hi Bruno,

Thanks... (maybe include this in the manuals, I couldn't find this
information...)

Best Regards
Marcus

On Apr 10, 2005 11:23 PM, Bruno Wolff III <bruno (AT) wolff (DOT) to> wrote:
Quote:
On Tue, Apr 05, 2005 at 18:09:25 +0100,
"Marcus v. Scotti" <m.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.


--
Marcus v. Scotti
Director
Fry-IT LTD

www.fry-it.com

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq


Reply With Quote
  #5  
Old   
Marcus v. Scotti
 
Posts: n/a

Default Re: [BUGS] BUG #1581: Problem with capitalised DB names... - 04-11-2005 , 11:16 PM



Hi Bruno,

Oops, I've overlooked that passage. Thanks for your help and sorry for
wasting your time.

Best Ragards
Marcus

On Apr 11, 2005 6:18 PM, Bruno Wolff III <bruno (AT) wolff (DOT) to> wrote:
Quote:
On Mon, Apr 11, 2005 at 09:37:08 +0100,
"Marcus v. Scotti" <mvscotti (AT) gmail (DOT) com> wrote:

Thanks... (maybe include this in the manuals, I couldn't find this
information...)

It is:
http://developer.postgresql.org/docs...AX-IDENTIFIERS


--
Marcus v. Scotti
Director
Fry-IT LTD

www.fry-it.com

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.