A schema in PostgreSQL is a namespace within a database — a logical container that groups related tables, views, functions, and other objects. Schemas let you organize objects and avoid naming collisions; the default schema is public.
Schemas organize objects within a database
A PostgreSQL server can have multiple DATABASES.
Each database can have multiple SCHEMAS (namespaces).
Each schema contains TABLES, views, functions, etc.
→ Hierarchy: server → database → schema → tables/objects
SCHEMA sales;
sales.orders (...);
sales.orders;
users (...);
