A search path is an ordered list of schemas PostgreSQL searches for unqualified objects. Its first applicable schema becomes the current schema for commands that omit a schema name. section 2.1.2
Use the search path to:
- Inspect the active schema order with SHOW search_path; section 2.1.2
- Switch the current schema with SET search_path TO products; section 2.1.2
- Query products.catalog as catalog after selecting products as the search path. section 2.2
Query a product table without its schema name
SET search_path TO products; SELECT id FROM catalog; section 2.2
SHOW search_path; search_path ----------------- "$user", public (1 row)
Inspect the default search path before changing it. section 2.1.2
SET search_path TO products;
Apply a products-focused search path for subsequent unqualified commands. section 2.1.2

