Re: How to implement the 'GRANT ALL ON DB1 TO 'USER'@'%' of MYSQL in PostgreSQL

From: Casey Allen Shobe <casey(at)shobe(dot)info>
To: 戴松晚 <151359779(at)qq(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: How to implement the 'GRANT ALL ON DB1 TO 'USER'@'%' of MYSQL in PostgreSQL
Date: 2013-01-14 17:43:11
Message-ID: CAFmVg3g=codTT5QU+OW+k+UKcAwWm3Uz94CpSXRyCSt6Z9sbVw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I'd recommend setting up group roles (roles which cannot login) to grant
your various permission sets to, and then add users to the appropriate
groups, using permission inheritence. Then any grants/revokes you make in
the future to the groups automatically apply to the users. You may wish to
divide up permissions into several groups for manageability.
On Mon, Jan 7, 2013 at 9:15 PM, 戴松晚 <151359779(at)qq(dot)com> wrote:

> 1, The two users can access all of the exist relations.
>

Provided by them having membership of the same group.

> 2, User2 can access the relations that are created by user1 in the future
> without any 'grant....'.
> 3, User1 can access the tables, functions and so on that are created by
> user2.
>

Grant will still be required, but only once (to the appropriate group).

Cheers,
--
Casey Allen Shobe
casey(at)shobe(dot)info

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Lonni J Friedman 2013-01-14 20:02:34 Re: Postgres WAL Recovery Fails... And Then Works...
Previous Message Casey Allen Shobe 2013-01-14 17:38:03 Re: Mixing an SSD and Spinning drive for best performance