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

# 52.9. pg\_auth\_members \#

### 52.9. `pg_auth_members` [#](#catalog-pg-auth-members) <a href="#catalog-pg-auth-members" id="catalog-pg-auth-members"></a>

系統目錄 `pg_auth_members` 呈現角色之間的成員關係。 任何不形成循環的關係集合都是允許的。

由於使用者身分是整個叢集通用的， `pg_auth_members` 由叢集中的所有資料庫共用：每個叢集只有一份 `pg_auth_members`，而不是每個資料庫各一份。

#### 表 52.9. `pg_auth_members` 欄位 [#](#catalog-pg-auth-members-columns) <a href="#catalog-pg-auth-members-columns" id="catalog-pg-auth-members-columns"></a>

| <p>欄位類型</p><p>說明</p>                                                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>oid</code> <code>oid</code></p><p>資料列識別碼</p>                                                                                                                                                                |
| <p><code>roleid</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>擁有成員之角色的 ID</p>                      |
| <p><code>member</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>身為 <code>roleid</code> 成員之角色的 ID</p> |
| <p><code>grantor</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>授予此成員資格之角色的 ID</p>                  |
| <p><code>admin\_option</code> <code>bool</code></p><p>若 <code>member</code> 可以將 <code>roleid</code> 的成員資格授予他人，則為 true</p>                                                                                            |
| <p><code>inherit\_option</code> <code>bool</code></p><p>若該成員自動繼承所授予角色的權限，則為 true</p>                                                                                                                                 |
| <p><code>set\_option</code> <code>bool</code></p><p>若該成員可以 <a href="https://docs.postgresql.tw/19/reference/sql-commands/sql-set-role.md"><code>SET ROLE</code></a> 為所授予的角色，則為 true</p>                              |

<br>

***

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