BUG #2690: GRANT does not allow periods in database or schema names

Поиск
Список
Период
Сортировка
От Nick Johnson
Тема BUG #2690: GRANT does not allow periods in database or schema names
Дата
Msg-id 200610121759.k9CHxjrw033661@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #2690: GRANT does not allow periods in database or schema names  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: BUG #2690: GRANT does not allow periods in database or schema names  (Peter Eisentraut <peter_e@gmx.net>)
Re: BUG #2690: GRANT does not allow periods in database or schema names  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
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.

pgsql=# GRANT ALL ON DATABASE example.com TO someuser;
ERROR:  syntax error at or near "." at character 30
LINE 1: GRANT ALL ON DATABASE example.com TO someuser;

The same syntax works okay for databases without a period in the name.

Either GRANT should work on any database name that works when creating a
database, or CREATE should disallow the same things that GRANT disallows.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Ille vieljans"
Дата:
Сообщение: BUG #2691: Server did not start. Error: Could not create log file.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #2690: GRANT does not allow periods in database or schema names