how to setup postgresql to use password for authentication code example Example: create password for user in postgres ALTER USER davide WITH PASSWORD 'hu8jmn3';