-
-
Save njmube/d22af8d6df17d53af76f83cda766a924 to your computer and use it in GitHub Desktop.
grant postgres
This file contains 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 postgres TO role_name; | |
GRANT CREATE ON DATABASE postgres TO role_name; | |
GRANT USAGE ON SCHEMA schema_name TO role_name; | |
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA schema_name TO role_name; | |
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA schema_name TO role_name; | |
ALTER DEFAULT PRIVILEGES IN SCHEMA schema_name GRANT SELECT, INSERT, UPDATE, DELETE ON TABLES TO role_name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment