acessar postgresl pelo cmd code example
Example 1: how to access postgres CLI
# User postgres is default. It then may ask you for password.
psql -U postgres
Example 2: access the postgres psql
psql -h localhost -U username databasename
# User postgres is default. It then may ask you for password.
psql -U postgres
psql -h localhost -U username databasename