pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedInherit Database - Table Permissions
2+ messages / 2 participants
[nested] [flat]
* Inherit Database - Table Permissions
@ 2019-05-31 16:17 Sathish Kumar <satcse88@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Sathish Kumar @ 2019-05-31 16:17 UTC (permalink / raw)
To: pgsql-general
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Inherit Database - Table Permissions
@ 2019-05-31 16:26 Ron <ronljohnsonjr@gmail.com>
parent: Sathish Kumar <satcse88@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Ron @ 2019-05-31 16:26 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-05-31 16:26 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-05-31 16:17 Inherit Database - Table Permissions Sathish Kumar <satcse88@gmail.com>
2019-05-31 16:26 ` Ron <ronljohnsonjr@gmail.com>
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