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

# 第 31 章 迴歸測試

### 第 31 章 迴歸測試

**目錄**

* [31.1. 執行測試](https://docs.postgresql.tw/19/server-administration/regress/regress-run.md)
  * [31.1.1. 針對暫時安裝執行測試](https://docs.postgresql.tw/19/server-administration/regress/regress-run.md#regress-run-temp-inst)
  * [31.1.2. 針對既有安裝執行測試](https://docs.postgresql.tw/19/server-administration/regress/regress-run.md#regress-run-existing-inst)
  * [31.1.3. 額外的測試套組](https://docs.postgresql.tw/19/server-administration/regress/regress-run.md#regress-additional)
  * [31.1.4. 地區設定與編碼](https://docs.postgresql.tw/19/server-administration/regress/regress-run.md#regress-run-locale)
  * [31.1.5. 自訂伺服器設定](https://docs.postgresql.tw/19/server-administration/regress/regress-run.md#regress-run-custom-settings)
  * [31.1.6. 額外測試](https://docs.postgresql.tw/19/server-administration/regress/regress-run.md#regress-run-extra-tests)
* [31.2. 測試評估](https://docs.postgresql.tw/19/server-administration/regress/regress-evaluation.md)
  * [31.2.1. 錯誤訊息差異](https://docs.postgresql.tw/19/server-administration/regress/regress-evaluation.md#regress-evaluation-message-differences)
  * [31.2.2. 地區設定差異](https://docs.postgresql.tw/19/server-administration/regress/regress-evaluation.md#regress-evaluation-locale-differences)
  * [31.2.3. 日期與時間差異](https://docs.postgresql.tw/19/server-administration/regress/regress-evaluation.md#regress-evaluation-date-time-differences)
  * [31.2.4. 浮點數差異](https://docs.postgresql.tw/19/server-administration/regress/regress-evaluation.md#regress-evaluation-float-differences)
  * [31.2.5. 資料列順序差異](https://docs.postgresql.tw/19/server-administration/regress/regress-evaluation.md#regress-evaluation-ordering-differences)
  * [31.2.6. 堆疊深度不足](https://docs.postgresql.tw/19/server-administration/regress/regress-evaluation.md#regress-evaluation-stack-depth)
  * [31.2.7. 「random」測試](https://docs.postgresql.tw/19/server-administration/regress/regress-evaluation.md#regress-evaluation-random-test)
  * [31.2.8. 組態參數](https://docs.postgresql.tw/19/server-administration/regress/regress-evaluation.md#regress-evaluation-config-params)
* [31.3. 變體比對檔案](https://docs.postgresql.tw/19/server-administration/regress/regress-variant.md)
* [31.4. TAP 測試](https://docs.postgresql.tw/19/server-administration/regress/regress-tap.md)
  * [31.4.1. 環境變數](https://docs.postgresql.tw/19/server-administration/regress/regress-tap.md#regress-tap-vars)
* [31.5. 測試涵蓋率檢驗](https://docs.postgresql.tw/19/server-administration/regress/regress-coverage.md)
  * [31.5.1. 使用 Autoconf 與 Make 檢驗涵蓋率](https://docs.postgresql.tw/19/server-administration/regress/regress-coverage.md#regress-coverage-configure)
  * [31.5.2. 使用 Meson 檢驗涵蓋率](https://docs.postgresql.tw/19/server-administration/regress/regress-coverage.md#regress-coverage-meson)

迴歸測試是針對 PostgreSQL 中 SQL 實作方式的一套完整測試。 這些測試涵蓋標準 SQL 運作方式， 以及 PostgreSQL 的擴充功能。

***

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


---

# 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/server-administration/regress.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.
