Re: Default Privilege Table ANY ROLE

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Default Privilege Table ANY ROLE
Date: 2018-11-14 16:05:51
Message-ID: 787f53ab-01fc-f022-f699-b7a84e30d74e@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/14/2018 08:19 AM, Nicolas Paris wrote:
> Hi
>
> I d'like my user be able to select on any new table from other users.
>
>> ALTER DEFAULT PRIVILEGES FOR ROLE "theowner1" IN SCHEMA "myschema" GRANT select ON TABLES TO "myuser"
>> ALTER DEFAULT PRIVILEGES FOR ROLE "theowner2" IN SCHEMA "myschema" GRANT select ON TABLES TO "myuser"
>> ...
>
> Do I really have to repeat the command for all users ?
>
> The problem is I have many user able to create tables and all of them
> have to read each other.

Would ROLE Groups solve your problem?

--
Angular momentum makes the world go 'round.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2018-11-14 16:10:02 Re: Move cluster to new host, upgraded version [DONE]
Previous Message Rich Shepard 2018-11-14 15:50:52 Re: Move cluster to new host, upgraded version