kobolds <dreammes2007@gmail.com> wrote:
> "By default, users cannot access any objects in schemas they do
> not own. To allow that, the owner of the schema must grant the
> USAGE privilege on the schema. To allow users to make use of the
> objects in the schema, additional privileges might need to be
> granted, as appropriate for the object."
>
> but i already did grant all privileges on schema sh1 to user1;
>
> so why user1 still unable to access.
Maybe a metaphor would help. By granting access to the database,
you have given the user access to the building. Picture a building
with one key for the front door, a different key for each floor,
and a different key for each room on each floor. By granting
access to the schema you have given the user a key to the floor.
Granting access to the individual objects in the schema is like
giving them keys to the individual rooms on the floor. You haven't
done that yet.
--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company