logging in to a different user usng psql in postgresql database code example
Example: how to login using a particular user postrges
psql -d mydb -U myuser -W
psql -h myhost -d mydb -U myuser -W
psql -d mydb -U myuser -W
psql -h myhost -d mydb -U myuser -W