I have script to create user and grant all privileges for table in postgres
create user dev_api with encrypted password 'xxx';
grant all privileges on database dev to dev_api;
ALTER USER dev_api CREATEDB;
GRANT ALL ON DATABASE dev TO dev_api;
GRANT ALL ON schema public TO dev_api;
GRANT ALL ON ALL TABLES IN SCHEMA public TO dev_api;
Privileges working for existing tables. Problem is that when I create new table I have not rights to read this new table.
Why?
How can I solve it in my script?