postgresql create user for database 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