Re: [postgresql 9.2.3] schema and privileges
От | Kevin Grittner |
---|---|
Тема | Re: [postgresql 9.2.3] schema and privileges |
Дата | |
Msg-id | 1363288846.4128.YahooMailNeo@web162904.mail.bf1.yahoo.com обсуждение исходный текст |
Ответ на | Re: [postgresql 9.2.3] schema and privileges (kobolds <dreammes2007@gmail.com>) |
Список | pgsql-novice |
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
В списке pgsql-novice по дате отправления: