Re: New table not have access for read only user

From: Sundeep Kumar <puramsandeepk(at)gmail(dot)com>
To: Ankur Kaushik <ankurkaushik(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: New table not have access for read only user
Date: 2024-02-28 12:46:55
Message-ID: CAAODA-taCEC-=MiAH2vyCXvOLOP1P4JNnTf1xPYyG+nc+_rDUA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

This may help
https://www.commandprompt.com/education/how-to-create-a-read-only-user-in-postgresql/

On Wed, Feb 28, 2024, 20:40 Ankur Kaushik <ankurkaushik(at)gmail(dot)com> wrote:

> Hi ,
>
> I am making the user in postgresql 14.7 as below commands
>
> \c dbname;
> CREATE USER report_reader WITH PASSWORD 'xyz';
> GRANT SELECT ON ALL TABLES IN SCHEMA public TO report_reader;
> GRANT SELECT ON ALL TABLES IN SCHEMA schema1 TO report_reader;
> GRANT USAGE ON SCHEMA schema1 TO report_reader ;
>
>
> When the new table is added , report_reader not able to see show
> permission denied.
>
> After executing the below command able to read
> GRANT SELECT ON ALL TABLES IN SCHEMA schema1 TO report_reader;
>
> So How we can make to read only user new tables are able to show by
> itself. ?
>
> Thanks and Regards
> Ankur
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message David Barron 2024-02-28 16:23:23 Backup strategy
Previous Message David G. Johnston 2024-02-28 12:46:11 Re: New table not have access for read only user