> 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/19/internals/catalogs/catalog-pg-extension.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# 52.22. pg\_extension \#

### 52.22. `pg_extension` [#](#catalog-pg-extension) <a href="#catalog-pg-extension" id="catalog-pg-extension"></a>

系統目錄 `pg_extension` 存放已安裝擴充功能的相關資訊。關於擴充功能的詳細資訊，請參閱[第 36.17 節](https://docs.postgresql.tw/19/server-programming/extend/extend-extensions.md)。

#### 表 52.22. `pg_extension` 欄位 [#](#catalog-pg-extension-columns) <a href="#catalog-pg-extension-columns" id="catalog-pg-extension-columns"></a>

| <p>欄位類型</p><p>說明</p>                                                                                                                                                                                                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>oid</code> <code>oid</code></p><p>資料列識別碼</p>                                                                                                                                                                                                    |
| <p><code>extname</code> <code>name</code></p><p>擴充功能的名稱</p>                                                                                                                                                                                              |
| <p><code>extowner</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-authid.md"><code>pg\_authid</code></a>.<code>oid</code>）</p><p>擴充功能的擁有者</p>                                                           |
| <p><code>extnamespace</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-namespace.md"><code>pg\_namespace</code></a>.<code>oid</code>）</p><p>包含此擴充功能所匯出物件的綱要</p>                                          |
| <p><code>extrelocatable</code> <code>bool</code></p><p>若擴充功能可以重新放置到其他綱要則為真</p>                                                                                                                                                                           |
| <p><code>extversion</code> <code>text</code></p><p>擴充功能的版本名稱</p>                                                                                                                                                                                         |
| <p><code>extconfig</code> <code>oid\[]</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-class.md"><code>pg\_class</code></a>.<code>oid</code>）</p><p>此擴充功能之設定資料表的 <code>regclass</code> OID 陣列；若無則為 <code>NULL</code></p> |
| <p><code>extcondition</code> <code>text\[]</code></p><p>此擴充功能之設定資料表的 <code>WHERE</code> 子句過濾條件陣列；若無則為 <code>NULL</code></p>                                                                                                                              |

<br>

請注意，與大多數具有「namespace」欄位的系統目錄不同，`extnamespace` 並不意味著該擴充功能屬於那個綱要。擴充功能名稱永遠不會以綱要限定。`extnamespace` 指出的是包含該擴充功能大部分或全部物件的綱要。若 `extrelocatable` 為真，則此綱要實際上必須包含屬於該擴充功能、所有可以用綱要限定的物件。

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/catalog-pg-extension.html)（原文版本：18.6；核對日期：2026-10-17）


---

# 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/19/internals/catalogs/catalog-pg-extension.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.
