Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to add user to role postgresql

CREATE ROLE joe LOGIN INHERIT;
CREATE ROLE admin NOINHERIT;
CREATE ROLE wheel NOINHERIT;
GRANT admin TO joe;
GRANT wheel TO admin;
Source by www.postgresql.org #
 
PREVIOUS NEXT
Tagged: #add #user #role #postgresql
ADD COMMENT
Topic
Name
2+2 =