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) WhatsApp Click to share on Facebook (Opens in new window) Facebook Click to share on LinkedIn (Opens in new window) LinkedIn Click to share on Pinterest (Opens in new window) Pinterest Click to share on Reddit (Opens in new window) Reddit Related See also PostgreSQL - COUNT