Last active
May 4, 2017 21:26
-
-
Save ericjsilva/319847cfef50827951d96580acebc446 to your computer and use it in GitHub Desktop.
AWS Redshift: Create read-only user
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 [username] password 'password'; | |
grant usage on schema [schema] to [username]; | |
alter user [username] set search_path to [schema]; | |
grant select on all tables in schema [schema] to [username]; | |
commit; | |
select * from pg_user; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment