PSQL Создайте пользователя
# https://www.postgresql.org/docs/8.0/sql-createuser.html
CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';
Weeke
# https://www.postgresql.org/docs/8.0/sql-createuser.html
CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
psql=# grant all privileges on database <dbname> to <username>