I have 3 tasks:
I know how to solve first and second tasks:
CREATE USER admin WITH LOGIN PASSWORD 'password' SUPERUSER;
CREATE USER user1 WITH LOGIN PASSWORD 'user1';
CREATE USER user2 WITH LOGIN PASSWORD 'user2';
CREATE USER user3 WITH LOGIN PASSWORD 'user3';
How can I solve third task?
You need to use the grant
function:
GRANT admin TO user1;