pg_dbname Get the database name &reftitle.description; stringpg_dbname PgSql\Connectionnullconnection&null; pg_dbname returns the name of the database that the given PostgreSQL connection instance. &reftitle.parameters; connection &pgsql.parameter.connection-with-nullable-default; &reftitle.returnvalues; A string containing the name of the database the connection is to. &reftitle.changelog; &Version; &Description; &pgsql.changelog.connection-object; 8.0.0 connection is now nullable. &reftitle.examples; <function>pg_dbname</function> example ]]>