PostgreSQL – How to Create a User
To create a new user in PostgreSQL, you can use the CREATE USER SQL command. Below is the basic syntax: CREATE USER username [WITH PASSWORD ‘password’]; where username is the desired username for the new user, and [WITH PASSWORD ‘password’] is optional. If you include the password, the user will be created with that password….