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