psql vytvoriť používateľa
# https://www.postgresql.org/docs/8.0/sql-createuser.html
CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';
vytvoriť nového používateľa v postgres
CREATE USER visualscrapy WITH PASSWORD '123456';
# it will create the new user in postgres
vytvoriť používateľa postgres windows
# in the terminal (not inside psql)
createuser -P --interactive ExampleUser
# Inside psql (using SQL)
CREATE USER john WITH PASSWORD 'mypass' CREATEDB;