Build the mental model
In PostgreSQL, the server process owns the data files and accepts client connections. `psql`, an application server, or a GUI tool acts as a client that sends SQL and receives results. In PostgreSQL terminology, a “cluster” is the collection of databases managed by one server instance, not a Kubernetes cluster.
Connect it to a real scenario
Think of a browser calling an API, then the API server querying PostgreSQL over a database connection. The browser should never receive direct database access. Authentication, validation, and authorization live at the application boundary, with roles and constraints providing another layer inside the database.
Try the working example
Browser
└─ HTTPS → Node.js API
└─ PostgreSQL connection → postgres server
├─ tutorial_platform
└─ postgresYou can distinguish clients, servers, connections, clusters, and databases.5-minute try-it
Draw the browser → API → database data flow for an application you have used.
One important caution
Do not treat a database cluster, database, and schema as synonyms; they have different scopes and permission boundaries.
PostgreSQL — Architectural Fundamentals — PostgreSQL Global Development Group