how to create a user id in postgresql 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