how to check postgres table in terminal code example Example: show details of table postgres postgres=# \d tablename;