Difference between revisions of "GRANT SELECT"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/questions/760210/how-do-you-create-a-read-only-user-in-postgresql
Line 11: | Line 11: | ||
[[GRANT SELECT ON ALL TABLES IN SCHEMA]] your_schema [[TO GROUP]] your_group; | [[GRANT SELECT ON ALL TABLES IN SCHEMA]] your_schema [[TO GROUP]] your_group; | ||
− | GRANT SELECT ON mytable TO xxx; | + | [[GRANT SELECT ON]] mytable TO xxx; |
GRANT SELECT ON mytable TO xxx;<ref>https://stackoverflow.com/questions/760210/how-do-you-create-a-read-only-user-in-postgresql</ref> | GRANT SELECT ON mytable TO xxx;<ref>https://stackoverflow.com/questions/760210/how-do-you-create-a-read-only-user-in-postgresql</ref> |
Revision as of 16:00, 15 December 2022
GRANT SELECT
in Amazon RedShift and PostgreSQL.
Contents
Examples
PostgreSQL:
GRANT SELECT ON ALL TABLES IN SCHEMA your_schema TO your_user;
Amazon RedShift: https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT-examples.html
GRANT SELECT ON ALL TABLES IN SCHEMA your_schema TO your_user; GRANT SELECT ON ALL TABLES IN SCHEMA your_schema TO GROUP your_group;
GRANT SELECT ON mytable TO xxx;
GRANT SELECT ON mytable TO xxx;[1]
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO xxx;
Related
Activities
See also
GRANT
,\ddp
,GRANT USAGE
,GRANT ALL PRIVILEGES
,GRANT SELECT
, View GRANTs on Redshift,has_table_privilege
,has_schema_privilege
,HAS_DATABASE_PRIVILEGE
,SCHEMA
, Privileges,GRANT EXECUTE
Advertising: