psql descriibe table code example
Example 1: describe table postgres
postgres=# \d schema.tablename;
Example 2: show details of table postgres
postgres=# \d tablename;
postgres=# \d schema.tablename;
postgres=# \d tablename;