How to check connected user on psql

 

How to check connected user on psql :

\conninfo


example:

testsub=> \conninfo

You are connected to database "testsub" as user "sub" on host "localhost" (address "127.0.0.1") at port "5432".


Comments