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

# 9.27. 系統資訊函式與運算子 \#

### 9.27. 系統資訊函式與運算子 [#](#functions-info) <a href="#functions-info" id="functions-info"></a>

[9.27.1. 工作階段資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-session.md#functions-info-session)

[9.27.2. 存取權限查詢函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-access.md#functions-info-access)

[9.27.3. 綱要可見性查詢函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-schema.md#functions-info-schema)

[9.27.4. 系統目錄資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-catalog.md#functions-info-catalog)

[9.27.5. 物件資訊與定址函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-object.md#functions-info-object)

[9.27.6. 註解資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-comment.md#functions-info-comment)

[9.27.7. 資料有效性檢查函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-validity.md#functions-info-validity)

[9.27.8. 交易 ID 與快照資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-snapshot.md#functions-info-snapshot)

[9.27.9. 已提交交易資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-commit-timestamp.md#functions-info-commit-timestamp)

[9.27.10. 控制資料函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-controldata.md#functions-info-controldata)

[9.27.11. 版本資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-version.md#functions-info-version)

[9.27.12. WAL 摘要資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-wal-summary.md#functions-info-wal-summary)

本節所描述的函式用於取得 PostgreSQL 安裝環境的各種資訊。

#### 9.27.1. 工作階段資訊函式 [#](#functions-info-session) <a href="#functions-info-session" id="functions-info-session"></a>

完整內容請見 [9.27.1. 工作階段資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-session.md#functions-info-session)。

#### 9.27.2. 存取權限查詢函式 [#](#functions-info-access) <a href="#functions-info-access" id="functions-info-access"></a>

完整內容請見 [9.27.2. 存取權限查詢函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-access.md#functions-info-access)。

#### 9.27.3. 綱要可見性查詢函式 [#](#functions-info-schema) <a href="#functions-info-schema" id="functions-info-schema"></a>

完整內容請見 [9.27.3. 綱要可見性查詢函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-schema.md#functions-info-schema)。

#### 9.27.4. 系統目錄資訊函式 [#](#functions-info-catalog) <a href="#functions-info-catalog" id="functions-info-catalog"></a>

完整內容請見 [9.27.4. 系統目錄資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-catalog.md#functions-info-catalog)。

#### 9.27.5. 物件資訊與定址函式 [#](#functions-info-object) <a href="#functions-info-object" id="functions-info-object"></a>

完整內容請見 [9.27.5. 物件資訊與定址函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-object.md#functions-info-object)。

#### 9.27.6. 註解資訊函式 [#](#functions-info-comment) <a href="#functions-info-comment" id="functions-info-comment"></a>

完整內容請見 [9.27.6. 註解資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-comment.md#functions-info-comment)。

#### 9.27.7. 資料有效性檢查函式 [#](#functions-info-validity) <a href="#functions-info-validity" id="functions-info-validity"></a>

完整內容請見 [9.27.7. 資料有效性檢查函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-validity.md#functions-info-validity)。

#### 9.27.8. 交易 ID 與快照資訊函式 [#](#functions-info-snapshot) <a href="#functions-info-snapshot" id="functions-info-snapshot"></a>

完整內容請見 [9.27.8. 交易 ID 與快照資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-snapshot.md#functions-info-snapshot)。

#### 9.27.9. 已提交交易資訊函式 [#](#functions-info-commit-timestamp) <a href="#functions-info-commit-timestamp" id="functions-info-commit-timestamp"></a>

完整內容請見 [9.27.9. 已提交交易資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-commit-timestamp.md#functions-info-commit-timestamp)。

#### 9.27.10. 控制資料函式 [#](#functions-info-controldata) <a href="#functions-info-controldata" id="functions-info-controldata"></a>

完整內容請見 [9.27.10. 控制資料函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-controldata.md#functions-info-controldata)。

#### 9.27.11. 版本資訊函式 [#](#functions-info-version) <a href="#functions-info-version" id="functions-info-version"></a>

完整內容請見 [9.27.11. 版本資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-version.md#functions-info-version)。

#### 9.27.12. WAL 摘要資訊函式 [#](#functions-info-wal-summary) <a href="#functions-info-wal-summary" id="functions-info-wal-summary"></a>

完整內容請見 [9.27.12. WAL 摘要資訊函式](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info/functions-info-wal-summary.md#functions-info-wal-summary)。

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/functions-info.html)（原文版本：18.6；核對日期：2026-09-11）


---

# 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/the-sql-language/functions/functions-info.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.
