Created
October 21, 2019 08:38
-
-
Save aamsur-mkt/c1e57a15fbd927862fefb8a5a43931d1 to your computer and use it in GitHub Desktop.
re Grant Permission Previliges Postgre User
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
| \connect your_database; | |
| REVOKE ALL ON DATABASE your_database FROM yourf_name; | |
| GRANT CONNECT ON DATABASE your_database TO yourf_name; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO yourf_name; | |
| ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO yourf_name; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GRANT USAGE ON schema public to yourf_name;