Concept Flow - Public schema vs custom schemas
Start: Connect to DB
Check default schema
Public schema exists?
Yes→Use public schema
Create custom schema
Create public schema
Use custom schema
Create objects in schema
Query objects with schema prefix or search_path
End
This flow shows how PostgreSQL uses the public schema by default, but you can create and use custom schemas to organize database objects separately.