pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Default Privilege Table ANY ROLE
Date: Wed, 14 Nov 2018 10:05:51 -0600
Message-ID: <787f53ab-01fc-f022-f699-b7a84e30d74e@gmail.com> (raw)
In-Reply-To: <20181114141608.ryvolxl7v7z2grzi@riseup.net>
References: <20181114141608.ryvolxl7v7z2grzi@riseup.net>

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.




view thread (11+ messages)  latest in thread

Message-ID: <787f53ab-01fc-f022-f699-b7a84e30d74e@gmail.com>
Permalink:  ../787f53ab-01fc-f022-f699-b7a84e30d74e@gmail.com/
Also on:    postgresql.org/message-id/787f53ab-01fc-f022-f699-b7a84e30d74e@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Default Privilege Table ANY ROLE
  In-Reply-To: <787f53ab-01fc-f022-f699-b7a84e30d74e@gmail.com>
  References: <20181114141608.ryvolxl7v7z2grzi@riseup.net> <787f53ab-01fc-f022-f699-b7a84e30d74e@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox