PostgreSQL/Postgre SQL/current database
Name of current database
postgres=#
postgres=# -- System Information Functions
postgres=#
postgres=# -- name of current database
postgres=# select current_database() ;
current_database
------------------
postgres
(1 row)
postgres=#
postgres=#