Last active
May 10, 2023 04:18
-
-
Save ryanhs/646b98a39f30d81e0b00b62d78263d78 to your computer and use it in GitHub Desktop.
postgre grants example
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
CREATE USER someuser WITH PASSWORD 'somepass'; | |
GRANT ALL PRIVILEGES ON DATABASE somedb to someuser; | |
-- on database | |
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO someuser; | |
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO someuser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment