get list of table in database postgres code example Example: show details of table postgres postgres=# \d tablename;