psql with username and password code example
Example 1: how to connect postgres user password using command line
sudo -u postgres psql postgres
Example 2: psql create user
# https://www.postgresql.org/docs/8.0/sql-createuser.html
CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';
Example 3: how to connect postgres user password using command line
\password postgres
Example 4: create user and password postgres
dropuser username