how to display tables of a database psql commandline code example Example: show details of table postgres postgres=# \d tablename;