Re: Problem with GRANT in 7.4.19 - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Problem with GRANT in 7.4.19
Date
Msg-id D960CB61B694CF459DCFB4B0128514C201E02EFC@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Problem with GRANT in 7.4.19  ("Kakoli Sen" <kakolis@cdacb.ernet.in>)
List 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 by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: postgre vs MySQL
Next
From: "Kakoli Sen"
Date:
Subject: Re: Problem with GRANT in 7.4.19