Postgresql PostgreSQL – Get current user Run the below select statement to obtain the username of the current session in Postgres database. select current_user; Share this:Click to share on WhatsApp (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Click to share on Reddit (Opens in new window) Related See also PostgreSQL - Kill user session