Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

grant read only privileges postgres user

grant connect on database "mydatabase" to "user";
GRANT USAGE ON SCHEMA public TO "user";
GRANT SELECT ON ALL TABLES IN SCHEMA "public" TO "user";
ALTER DEFAULT PRIVILEGES IN SCHEMA "public"
   GRANT SELECT ON TABLES TO "user";
 
PREVIOUS NEXT
Tagged: #grant #read #privileges #postgres #user
ADD COMMENT
Topic
Name
2+9 =