Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Grant read-only privilleges to the user

GRANT CONNECT ON DATABASE wsh TO <username>;
GRANT USAGE ON SCHEMA public TO <username>;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO <username>;
GRANT SELECT ON ALL SEQUENCES IN SCHEMA public TO <username>;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO <username>;
 
PREVIOUS NEXT
Tagged: #Grant #privilleges #user
ADD COMMENT
Topic
Name
1+6 =