psql with password code example
Example 1: create password for user in postgres
ALTER USER davide WITH PASSWORD 'hu8jmn3';
Example 2: how to connect postgres user password using command line
\password postgres
ALTER USER davide WITH PASSWORD 'hu8jmn3';
\password postgres