psql show with user is logged in
\conninfo
how to connect postgres user password using command line
sudo -u postgres psql postgres
how to login using a particular user postrges
psql -d mydb -U myuser -W
psql -h myhost -d mydb -U myuser -W
psql create user
# https://www.postgresql.org/docs/8.0/sql-createuser.html
CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';
how to connect postgres user password using command line
\password postgres
Postgres - Login and connect as default user
$ sudo -u postgres psql
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us