Postgresql PostgreSQL – Get current database name Run the below command to check the current database you are connected to in Postgres. SELECT current_database(); 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 - Revoke super user privileges