Re: Revoke - database does not exist - Mailing list pgsql-general

From David G Johnston
Subject Re: Revoke - database does not exist
Date
Msg-id 1398993605624-5802185.post@n5.nabble.com
Whole thread Raw
In response to Revoke - database does not exist  (Prashanth Kumar <prashanthk@hotmail.com>)
List pgsql-general
Prashanth Kumar wrote
> Hi,
>
> Do not seem to figure out what is wrong here. Why am I getting database
> does not exist.  I just created the database and am able to connect to it
> as "postgres" user.
>  I am trying to restrict  "testuser" from connecting to "myDB" database.

Thomas is likely correct about the quoting.  The command programs are
case-sensitive and perform the proper quoting for you when issuing commands;
but when you are inside psql you need to take care to perform the proper
quoting yourself.

WRT grant/revoke keep in mind when you revoke you only remove pre-existing
grants; it does not establish an explicit block on its own.  i.e., it
doesn't stop default permissions, or those inherited from PUBLIC, from
applying.  You would need to remove those inheritance-granted permissions
and then explicitly grant them back to those who still require them while
omitting those that do not.

David J.




--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Revoke-database-does-not-exist-tp5802183p5802185.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: Tomáš Vondra
Date:
Subject: Re: Revoke - database does not exist
Next
From: Tim van der Linden
Date:
Subject: Full text: Ispell dictionary