postgres command line to look up tables code example Example: show details of table postgres postgres=# \d tablename;