how to show databases postgres code example Example 1: postgresql list db Click to copypostgres=# \l Example 2: postgres how to list all databases Click to copyList all databases: \l