postgres create password for user code example
Example 1: create password for user in postgres
ALTER USER davide WITH PASSWORD 'hu8jmn3';
Example 2: postgres create admin user with password
sudo -u postgres createuser -s -i -d -r -l -w <<username>>
sudo -u postgres psql -c "ALTER ROLE <<username>> WITH PASSWORD '<<password>>';"
Example 3: create user and password postgres
dropuser username