Created
June 10, 2021 13:08
-
-
Save 0xKD/19b05962bb792466a7f51c7027a17c49 to your computer and use it in GitHub Desktop.
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
CREATE USER readonly WITH PASSWORD 'supersecret'; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readonly; | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readonly; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment