Last active
June 14, 2018 21:56
-
-
Save prachikhadke/0c0dde904cb420fb5352a84da611bbf8 to your computer and use it in GitHub Desktop.
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 USAGE ON SCHEMA public TO readwrite; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public To readwrite; | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readwrite; | |
GRANT USAGE ON SCHEMA schema_name TO readwrite; | |
GRANT SELECT ON ALL TABLES IN SCHEMA schema_name To readwrite; | |
ALTER DEFAULT PRIVILEGES IN SCHEMA schema_name GRANT SELECT ON TABLES TO readwrite; | |
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA schema_name TO readwrite; | |
GRANT SELECT, UPDATE ON ALL SEQUENCES IN SCHEMA schema_name TO readwrite; | |
CREATE USER username WITH PASSWORD 'password_value'; | |
GRANT readwrite TO username; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment