Re: New table not have access for read only user

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: New table not have access for read only user
Дата
Msg-id CAKFQuwZKFNvpYPBSpQkTe6kqfZ8GBozfvAjkdDHtpTGM2ekVXg@mail.gmail.com
обсуждение исходный текст
Ответ на New table not have access for read only user  (Ankur Kaushik <ankurkaushik@gmail.com>)
Список pgsql-admin
On Wednesday, February 28, 2024, Ankur Kaushik <ankurkaushik@gmail.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. ?

Use the alter default privileges command. 

David J.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Ankur Kaushik
Дата:
Сообщение: New table not have access for read only user
Следующее
От: Sundeep Kumar
Дата:
Сообщение: Re: New table not have access for read only user