Re: BUG #2690: GRANT does not allow periods in database or schema names - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #2690: GRANT does not allow periods in database or schema names
Date
Msg-id 20061013202320.GM23291@alvh.no-ip.org
Whole thread Raw
In response to BUG #2690: GRANT does not allow periods in database or schema names  ("Nick Johnson" <pgsql@spatula.net>)
List pgsql-bugs
Nick Johnson wrote:
>
> The following bug has been logged online:
>
> Bug reference:      2690
> Logged by:          Nick Johnson
> Email address:      pgsql@spatula.net
> PostgreSQL version: 8.1.1
> Operating system:   FreeBSD 6.1
> Description:        GRANT does not allow periods in database or schema names
> Details:
>
> Though you can create a database with a period in the name (e.g.,
> "example.com"), you cannot issue a GRANT on that database name from the
> command line.

Sure you can.  Just quote the name:

GRANT ALL ON DATABASE "example.com" TO someuser;

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-bugs by date:

Previous
From: "Nick Johnson"
Date:
Subject: BUG #2690: GRANT does not allow periods in database or schema names
Next
From: Peter Eisentraut
Date:
Subject: Re: BUG #2690: GRANT does not allow periods in database or schema names