> 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/internals/system-catalogs/51.54.-pg_tablespace.md).

# 51.54. pg\_tablespace

系統目錄 pg\_tablespace 儲存有關可用資料表空間的訊息。可以將資料表放置在特定的資料表空間中以幫助管理磁碟規畫。

與大多數系統目錄不同，pg\_tablespace 在叢集的所有資料庫之間共享：每個叢集只有一個 pg\_tablespace 副本，而不是每個資料庫一個副本。

**Table 51.54. `pg_tablespace` 欄位**

| 名稱           | 型別          | 參考                                                            | 說明                                                                                                       |
| ------------ | ----------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `oid`        | `oid`       |                                                               | 資料列識別指標（隱藏屬性；必須明確選擇）                                                                                     |
| `spcname`    | `name`      |                                                               | 資料表空間名稱                                                                                                  |
| `spcowner`   | `oid`       | [`pg_authid`](/12/internals/system-catalogs/pg_authid.md).oid | 資料表空間的所有者，通常是建立它的使用者                                                                                     |
| `spcacl`     | `aclitem[]` |                                                               | 存取權限；詳情請參閱 [GRANT](/12/reference/sql-commands/grant.md) 和 [REVOKE](/12/reference/sql-commands/revoke.md) |
| `spcoptions` | `text[]`    |                                                               | 資料表空間的選項，為“keyword = value”字串                                                                            |


---

# 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 dynamically by asking a question.

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

```
GET https://docs.postgresql.tw/12/internals/system-catalogs/51.54.-pg_tablespace.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
