how to create new user in postgres code example
Example 1: How do I add a user to a postgres database? cli
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
Example 2: create user and password postgres
dropuser username
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
dropuser username