Re: Access management for DB project.

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Access management for DB project.
Дата
Msg-id 20050908100444.GB4045@svana.org
обсуждение исходный текст
Ответ на Access management for DB project.  (Bohdan Linda <bohdan.linda@seznam.cz>)
Список pgsql-general
On Thu, Sep 08, 2005 at 12:08:25PM +0200, Bohdan Linda wrote:
> The first 2 types are easily solvable, but with the third type I have
> problem. I have created task in plpgsql, I granted permissions to an user
> to execute the task, but revoked on him all rights to tables. Logically
> task failed.

You're looking for the SECURITY DEFINER attribute. It causes the
procedure to run with the permissions of the user who created it,
rather than the user who runs it.

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Wolfgang Keller
Дата:
Сообщение: EMS PostgreSQL Manager vs. TheKompany DataArchitect
Следующее
От: Adam Witney
Дата:
Сообщение: Re: Access management for DB project.