# 52.54. pg\_tablespace

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

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

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

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


---

# 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://docs.postgresql.tw/11/internals/system-catalogs/51.54.-pg_tablespace.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.
