Skip to content

Database

Also called: databases, data base

Published:

What counts as a database?

One NIST glossary definition calls a database a repository of information or data, which may or may not be a traditional relational database system [1]. The breadth is deliberate: document stores, key-value stores and graph stores all fit under it. Another NIST definition, written for industrial control systems, gives the example of a repository holding plant-wide process data, recipes and personnel records [1].

Is a database the same as a database management system?

People often use the words interchangeably, but they name different things. The database is the data; the management system is the software that stores it, answers queries and keeps it consistent. PostgreSQL shows the distinction well. Its documentation calls PostgreSQL a relational database management system, explains that tables are grouped into databases, and calls the set of databases managed by a single PostgreSQL server instance a cluster [2]. One server can therefore host many databases at once.

How is data organised inside one?

In a relational system the data sits in tables. Each table is a named collection of rows, every row in a table has the same set of named columns, and each column has a specific data type [2]. Picture an online shop with products in one table and orders in another, both living in the same database. Systems such as PostgreSQL then add features like foreign keys, triggers, updatable views and transactional integrity on top [3].

Frequently asked questions

Are all databases relational?

No. NIST's definition explicitly says a database may or may not be a traditional relational system.

Sources

  1. database — NIST CSRC Glossary
  2. 2.2. Concepts — PostgreSQL Documentation
  3. 1. What Is PostgreSQL? — PostgreSQL Documentation