postgres name of databases code example Example: postgresql show current database SELECT current_database();