postgresql command to show fields in a tables code example Example: show details of table postgres postgres=# \d tablename;