CREATE ROLE username NOINHERIT LOGIN PASSWORD password;
CREATE ROLE joe LOGIN INHERIT;
CREATE ROLE admin NOINHERIT;
CREATE ROLE wheel NOINHERIT;
GRANT admin TO joe;
GRANT wheel TO admin;
GRANT group_role TO role1, ... ;
REVOKE group_role FROM role1, ... ;
CREATE ROLE admin WITH CREATEDB CREATEROLE;
CREATE ROLE name [ WITH ADMIN role_name ]