Last active
August 28, 2019 15:00
-
-
Save icavalheiro/63d57afedb15842cf88487d198733afd to your computer and use it in GitHub Desktop.
Grant read permissions to user Postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GRANT CONNECT | |
ON DATABASE database_name | |
TO user_name; | |
GRANT SELECT /*, INSERT, UPDATE, DELETE */ | |
ON ALL TABLES IN SCHEMA public | |
TO user_name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REVOKE SELECT/*, INSERT, UPDATE, DELETE */ ON table_name FROM user_name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment