pg_dbname Get the database name Description stringpg_dbname resourceconnection pg_dbname returns the name of the database that the given PostgreSQL connection resource. It returns &false;, if connection is not a valid PostgreSQL connection resource.