Re: Read only user permission

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hellen Jiang <hjiang(at)federatedwireless(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Read only user permission
Date: 2023-08-23 17:46:29
Message-ID: 3382052.1692812789@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hellen Jiang <hjiang(at)federatedwireless(dot)com> writes:
> I have created readonly and readwrite roles with the following grants: however, readonly user does not have access to the new tables created by readwrite user. (readonly user has the access to new tables created by admin).
> Any idea how I can grant the access to readonly to make sure it has the read access to NEW tables created by readwrite user?

The readwrite user (not the admin) would need to issue ALTER DEFAULT
PRIVILEGES granting that.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Wienhold 2023-08-23 17:51:13 Re: Read only user permission
Previous Message Marcos Pegoraro 2023-08-23 17:43:21 Re: Read only user permission