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: Inherit Database - Table Permissions
Date: Fri, 31 May 2019 11:26:31 -0500
Message-ID: <7df7c54f-fffd-3a84-f824-6c6221f29b9e@gmail.com> (raw)
In-Reply-To: <CANa_DOirTEO15COFa96keo1xGOYQtnd01yZK_Y_=P=NKRD+d-w@mail.gmail.com>
References: <CANa_DOirTEO15COFa96keo1xGOYQtnd01yZK_Y_=P=NKRD+d-w@mail.gmail.com>

On 5/31/19 11:17 AM, Sathish Kumar wrote:
> Hi Team,
>
> We have a database and keep creating new tables for the requirement.
>
> Every time we have to grant readonly permission to the new tables which 
> are created for the db user. Instead is there a way to inherit privileges. 
> Basically, we have a readonly user, who should run only select statements 
> on existing or nee tables.
>
> Can you help me on how to achieve it.

Maybe granting default privileges is what you need.

-- 
Angular momentum makes the world go 'round.





view thread (2+ messages)

Message-ID: <7df7c54f-fffd-3a84-f824-6c6221f29b9e@gmail.com>
Permalink:  ../7df7c54f-fffd-3a84-f824-6c6221f29b9e@gmail.com/
Also on:    postgresql.org/message-id/7df7c54f-fffd-3a84-f824-6c6221f29b9e@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: Inherit Database - Table Permissions
  In-Reply-To: <7df7c54f-fffd-3a84-f824-6c6221f29b9e@gmail.com>
  References: <CANa_DOirTEO15COFa96keo1xGOYQtnd01yZK_Y_=P=NKRD+d-w@mail.gmail.com> <7df7c54f-fffd-3a84-f824-6c6221f29b9e@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