Re: Both side privileges - Mailing list pgsql-general

From Jean-Philippe Chenel
Subject Re: Both side privileges
Date
Msg-id DM6PR10MB2921CDBEC0924127E6811DB8FD610@DM6PR10MB2921.namprd10.prod.outlook.com
Whole thread Raw
In response to Re: Both side privileges  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Both side privileges
List pgsql-general
Thank for your answer David.
This is what I'll do.

De : David G. Johnston <david.g.johnston@gmail.com>
Envoyé : 13 juillet 2020 19:46
À : Jean-Philippe Chenel <jp.chenel@live.ca>
Cc : pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Objet : Re: Both side privileges
 
On Mon, Jul 13, 2020 at 4:42 PM Jean-Philippe Chenel <jp.chenel@live.ca> wrote:
Hi,

I try to give userA privileges on userB objects and same thing to the userB, giving privileges on userA objects. 

Grant userB to userA; —ok
Grant userA to userB; —error: role userB is already member of role userA

Create a "group role" that retains ownership and then add both users to that group.

David J.

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: JDBC driver version for a given Postgres version
Next
From: Toomas Kristin
Date:
Subject: Re: Both side privileges