Re: Problem with GRANT in 7.4.19

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Problem with GRANT in 7.4.19
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C201E02EFC@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Problem with GRANT in 7.4.19  ("Kakoli Sen" <kakolis@cdacb.ernet.in>)
Список pgsql-general
Kakoli Sen wrote:
>     The command GRANT ALL PRIVILEGES ON DATABASE casDatabase to tester;
> is giving error:
> ERROR:  database "casdatabase" does not exist.(Note that the db name in error is all in lower case).
>
> Also \l shows that casDatabase  exists.
> Why is 'casDatabase' being changed to 'casdatabase'?

PostgreSQL will convert all names to lower case unless you protect them with
double quotes.

Try:
GRANT ALL PRIVILEGES ON DATABASE "casDatabase" to tester;

Yours,
Laurenz Albe

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: postgre vs MySQL
Следующее
От: "Kakoli Sen"
Дата:
Сообщение: Re: Problem with GRANT in 7.4.19