how to view tables in postgres database code example Example: show details of table postgres postgres=# \d tablename;