> For the complete documentation index, see [llms.txt](https://docs.postgresql.tw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.postgresql.tw/12/server-administration/managing-databases.md).

# 22. Managing Databases

**Table of Contents**\
[22.1. Overview](/12/server-administration/managing-databases/22.1.-overview.md)\
[22.2. Creating a Database](/12/server-administration/managing-databases/22.2.-creating-a-database.md)\
[22.3. Template Databases](/12/server-administration/managing-databases/template-databases.md)\
[22.4. Database Configuration](/12/server-administration/managing-databases/22.4.-database-configuration.md)\
[22.5. Destroying a Database](/12/server-administration/managing-databases/22.5.-destroying-a-database.md)\
[22.6. Tablespaces](/12/server-administration/managing-databases/22.6.-tablespaces.md)

正在執行的 PostgreSQL 伺服器的每個執行程序都會管理一個或多個資料庫。而資料庫是組織 SQL 物件（資料庫物件）的最高層級。本章介紹資料庫的屬性以及如何建立、管理和銷毀資料庫。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.postgresql.tw/12/server-administration/managing-databases.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
