current_database () → nameReturns the name of the current database. (Databases are called “catalogs” in the SQL standard, so
current_catalog is the standard's spelling.)Functions / System Information Functions And Operators
Returns the name of the current database.
Reading PG 18current·documented in 25 of 27 versions, 7.3 to 20
current_database () → nameReturns the name of the current database. (Databases are called “catalogs” in the SQL standard, so
current_catalog is the standard's spelling.)Definition snapshot: b7bd9cda · English manual source