# Storage Manager

It serves as an interface between the data stored in the database and the application programs and queries submitted to the system.

It is responsible for:

* interaction with the file manager (OS)
* efficient storage, retrieval and updation of data

It has the following components:

* **Authorization/Integrity Manager**: authenticates users and enforces integrity constraints
* **Transaction Manager**: ensures atomicity of transactions
* **File Manager**: keeps track of logical mapping between data and files
* **Buffer Manager**: uses data buffering policies to speed up data access

It is responsible for storing data, data dictionary (that contains information about all the entities in the database) and indices.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vikram-bajaj.gitbook.io/cs-gy-6083-principles-of-database-systems/main-1/dbms-internals/storage-manager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
