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

# 9.27.11. 版本資訊函式

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

[表 9.93](#functions-version) 所列的函式會輸出版本資訊。

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

| <p>函式</p><p>說明</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>version</code> () → <code>text</code></p><p>回傳描述 PostgreSQL 伺服器版本的字串。你也可以從 <a href="https://docs.postgresql.tw/19/server-administration/runtime-config/runtime-config-preset.md#GUC-SERVER-VERSION">server\_version</a> 取得這項資訊；若需要機器可讀的版本，則可以使用 <a href="https://docs.postgresql.tw/19/server-administration/runtime-config/runtime-config-preset.md#GUC-SERVER-VERSION-NUM">server\_version\_num</a>。軟體開發人員應該使用 <code>server\_version\_num</code>（自 8.2 版起提供）或 <a href="https://docs.postgresql.tw/19/client-interfaces/libpq/libpq-status.md#libpq-pqserverversion"><code>PQserverVersion</code></a>，而不是剖析文字形式的版本。</p> |
| <p><code>unicode\_version</code> () → <code>text</code></p><p>回傳代表 PostgreSQL 所使用之 Unicode 版本的字串。</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <p><code>icu\_unicode\_version</code> () → <code>text</code></p><p>如果伺服器建置時加入了 ICU 支援，則回傳代表 ICU 所使用之 Unicode 版本的字串；否則回傳 <code>NULL</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

<br>

[返回 9.27. 系統資訊函式與運算子](https://docs.postgresql.tw/19/the-sql-language/functions/functions-info.md#functions-info)

***

原文：[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/functions-info-version.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.
