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

# 52.3. pg\_am \#

### 52.3. `pg_am` [#](#catalog-pg-am) <a href="#catalog-pg-am" id="catalog-pg-am"></a>

系統目錄 `pg_am` 存放關聯存取方法的相關資訊。系統所支援的每一種存取方法各有一筆資料列。 目前只有資料表與索引具有存取方法。資料表存取方法與索引存取方法的需求，分別在[第 62 章](https://docs.postgresql.tw/19/internals/tableam.md)與 [第 63 章](https://docs.postgresql.tw/19/internals/indexam.md)中詳細討論。

#### 表 52.3. `pg_am` 欄位 [#](#catalog-pg-am-columns) <a href="#catalog-pg-am-columns" id="catalog-pg-am-columns"></a>

| <p>欄位類型</p><p>說明</p>                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>oid</code> <code>oid</code></p><p>資料列識別碼</p>                                                                                                                                                          |
| <p><code>amname</code> <code>name</code></p><p>存取方法的名稱</p>                                                                                                                                                     |
| <p><code>amhandler</code> <code>regproc</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-proc.md"><code>pg\_proc</code></a>.<code>oid</code>）</p><p>負責提供該存取方法相關資訊之處理函式的 OID</p> |
| <p><code>amtype</code> <code>char</code></p><p><code>t</code> = 資料表（包括具體化檢視表）， <code>i</code> = 索引。</p>                                                                                                        |

<br>

#### 注意

在 PostgreSQL 9.6 之前，`pg_am` 包含許多代表索引存取方法特性的額外欄位。這些資料現在只能在 C 程式碼層級直接看到。 不過，已新增 `pg_index_column_has_property()` 及相關 函式，讓 SQL 查詢可以檢視索引存取方法的特性；請參閱[表 9.76](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-catalog.md#functions-info-catalog-table)。

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/catalog-pg-am.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-am.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.
