access postgres
sudo su postgres -c psql
delete role
drop role user;
login
psql -d table -U user
create superuser with login privelages role basic
CREATE ROLE SUPERUSER LOGIN;
set password for role
alter role jwhorto1 with encrypted password ‘x’;
give existing role createdb ability
alter role jwhorto1 with createdb;
list all roles and role attributes and groups theyre part of
\du
list all dbs
\list
list all tables in current db
\dt