how to view postgres database table code example Example 1: postgresql list db postgres=# \l Example 2: show all tables postgres \dt # show list of tables in postgres