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