DEV Community

Cover image for Understanding the Logical Structure of PostgreSQL
Ahmad Tashfeen
Ahmad Tashfeen

Posted on

Understanding the Logical Structure of PostgreSQL

What is a Database Cluster?

A database cluster is a collection of databases looked after by one PostgreSQL server. Don't get confused - a database cluster isn't a group of database servers. Just one server runs on one computer and deals with one database cluster.

Visualisation of Databases and Database Clusters

Stepping into the Database Cluster

Each database within a cluster in PostgreSQL is logically separated from the others. This implies that each database has a unique set of database objects that only belong to that database. A specific database's tables, indexes, and other objects, for instance, are only accessible within that database.

Object Identifiers (OIDs)

Each database object in PostgreSQL is managed by an object identifier (OID), a 4-byte unsigned integer. Depending on the type of object, the relationships between database objects and the corresponding OIDs are stored in the appropriate system catalogues. For instance, heap tables' _and _databases' OIDs are stored in the respective pg_database and pg_class.

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay