postgres show databases connect to database code example Example 1: postgresql list db Click to copypostgres=# \l Example 2: postgres list databases Click to copypostgres=# \l