From: Nicolas Paris <nicolas.paris@riseup.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Default Privilege Table ANY ROLE
Date: Thu, 15 Nov 2018 22:45:00 +0100
Message-ID: <20181115214222.3wf4nrub4hhssixk@riseup.net> (raw)
In-Reply-To: <20181114141608.ryvolxl7v7z2grzi@riseup.net>
References: <20181114141608.ryvolxl7v7z2grzi@riseup.net>
On Wed, Nov 14, 2018 at 03:19:00PM +0100, 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.
>
There is apparently no trivial solution, could the Postgres DCL be
extended with this syntax in the future ?
> ALTER DEFAULT PRIVILEGES FOR ALL ROLE IN SCHEMA "myschema" GRANT select ON TABLES TO "myuser"
--
nicolas
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: nicolas.paris@riseup.net
Subject: Re: Default Privilege Table ANY ROLE
In-Reply-To: <20181115214222.3wf4nrub4hhssixk@riseup.net>
References: <20181114141608.ryvolxl7v7z2grzi@riseup.net> <20181115214222.3wf4nrub4hhssixk@riseup.net>
* 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