how to know all databes and user on postgres code example Example 1: postgresql list users postgres=# \du Example 2: postgresql list db postgres=# \l