how to add user to role postgresql
snippet in c

how to add user to role postgresql

user9331

CREATE ROLE joe LOGIN INHERIT;
CREATE ROLE admin NOINHERIT;
CREATE ROLE wheel NOINHERIT;
GRANT admin TO joe;
GRANT wheel TO admin;

postgresql create user roles

user7331

CREATE ROLE admin WITH CREATEDB CREATEROLE;

how to add user to role postgresql

user6551

GRANT group_role TO role1, ... ;
REVOKE group_role FROM role1, ... ;