New table not have access for read only user - Mailing list pgsql-admin

From Ankur Kaushik
Subject New table not have access for read only user
Date
Msg-id CALXoLqweaGWKNnLeHmN1eDNXx88AgwzcK_VM4J70-DoveM-SKw@mail.gmail.com
Whole thread Raw
Responses Re: New table not have access for read only user
Re: New table not have access for read only user
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Rajesh Kumar
Date:
Subject: Mean_exec_time
Next
From: "David G. Johnston"
Date:
Subject: Re: New table not have access for read only user