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