Answers for "psql username"

SQL
0

postgresql get current user name

SELECT CURRENT_USER;
Posted by: Guest on March-26-2020
1

how to login using a particular user postrges

psql -d mydb -U myuser -W
psql -h myhost -d mydb -U myuser -W
Posted by: Guest on May-28-2020
2

psql create user

# https://www.postgresql.org/docs/8.0/sql-createuser.html
CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';
Posted by: Guest on April-08-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language