psql show current database cli code example Example: postgresql show current database SELECT current_database();