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: Share on WhatsApp (Opens in new window) WhatsApp Share on Facebook (Opens in new window) Facebook Share on LinkedIn (Opens in new window) LinkedIn Share on Pinterest (Opens in new window) Pinterest Share on Reddit (Opens in new window) Reddit Related See also PostgreSQL - IS NOT NULL