Search Postgresql Archives

Re: Problem with GRANT in 7.4.19

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux