postgresql view database tables code example Example 1: postgresql list db postgres=# \l Example 2: show table postgres command PostgreSQL show tables command \dt