Re: grant everything on everything and then revoke - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject Re: grant everything on everything and then revoke
Date
Msg-id 20090303185405.7372c6d9@dawn.webthatworks.it
Whole thread Raw
In response to Re: grant everything on everything and then revoke  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
On Tue, 03 Mar 2009 09:29:17 -0800
John R Pierce <pierce@hogranch.com> wrote:

> Ivan Sergio Borgonovo wrote:
> > I'd like to have different users mainly to have a different
> > search schema path.
> > Things may evolve so this is not going to be the only reason to
> > have more than one user.

> > But I'm faced with the problem of granting the same access of the
> > owner of the db to the other users.

> ...

> have the database owned by a 'ROLE and make your users members of
> that ROLE.

This looks really neat for the beginning and it doesn't even look as
an hack ;)
What if I had to differentiate privileges of each user?
Will revoking privileges on each users work?

I didn't understand how

CREATE SCHEMA schemaname AUTHORIZATION username;

AUTHORIZATION really works and maybe it could be another way to
approach the problem.

Thanks to everybody.

Even the pointer to the functions was interesting.
The acl_admin.grant_on_all seems what my initial quest was looking
for, but the ROLE trick seems much more straight forward currently.

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: How to delete all locks? Re: Strange behavior: row won't delete
Next
From: Joshua Tolley
Date:
Subject: Re: postgreSQL & amazon ec2 cloud