The psql \d meta-command lists tables, views, and sequences in the connected database. It provides a quick check of which relations are currently visible. section 1.4
Inspect the connected database
Run \d at the psql prompt. A fresh database may respond with “Did not find any relations.” After creating products.catalog and products.reviews, the listing includes both tables and their catalog_id_seq and reviews_id_seq sequences. If expected objects are missing, set the schema with SET search_path TO products; and run \d again, or use \dts products.*. section 2.1.3 section 1.4
\d
List of relations
Schema | Name | Type | Owner
----------+-----------------+----------+----------
products | catalog | table | postgres
products | catalog_id_seq | sequence | postgres
products | reviews | table | postgres
products | reviews_id_seq | sequence | postgres
(4 rows)
Shows the resulting relation list, including schemas, object names, relation types, and owners. section 2.1.3
