Check out example codes for "postgresql create user roles". It will help you in understanding the concepts better.

Code Example 1

CREATE ROLE name [ WITH ADMIN role_name ]

Code Example 2

CREATE ROLE admin WITH CREATEDB CREATEROLE;

Learn ReactJs, React Native from akashmittal.com