After installation of postgres, login using superuser.
sudo su - postgres
List all the databases" \l
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------