Re: Access management for DB project. - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Access management for DB project.
Date
Msg-id 20050908100444.GB4045@svana.org
Whole thread Raw
In response to Access management for DB project.  (Bohdan Linda <bohdan.linda@seznam.cz>)
List 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.

Attachment

pgsql-general by date:

Previous
From: Wolfgang Keller
Date:
Subject: EMS PostgreSQL Manager vs. TheKompany DataArchitect
Next
From: Adam Witney
Date:
Subject: Re: Access management for DB project.