how to see available database in psql code example Example: postgresql show current database SELECT current_database();