postgres show table structure code example Example: describe table postgres postgres=# \d schema.tablename;