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

# 第 13 章 並行控制

**目錄**

* [13.1. 簡介](https://docs.postgresql.tw/19/the-sql-language/mvcc/mvcc-intro.md)
* [13.2. 交易隔離](https://docs.postgresql.tw/19/the-sql-language/mvcc/transaction-iso.md)
  * [13.2.1. Read Committed 隔離等級](https://docs.postgresql.tw/19/the-sql-language/mvcc/transaction-iso.md#xact-read-committed)
  * [13.2.2. Repeatable Read 隔離等級](https://docs.postgresql.tw/19/the-sql-language/mvcc/transaction-iso.md#xact-repeatable-read)
  * [13.2.3. Serializable 隔離等級](https://docs.postgresql.tw/19/the-sql-language/mvcc/transaction-iso.md#xact-serializable)
* [13.3. 明確鎖定](https://docs.postgresql.tw/19/the-sql-language/mvcc/explicit-locking.md)
  * [13.3.1. 資料表層級鎖定](https://docs.postgresql.tw/19/the-sql-language/mvcc/explicit-locking/locking-tables.md#locking-tables)
  * [13.3.2. 資料列層級鎖定](https://docs.postgresql.tw/19/the-sql-language/mvcc/explicit-locking/locking-rows.md#locking-rows)
  * [13.3.3. 頁面層級鎖定](https://docs.postgresql.tw/19/the-sql-language/mvcc/explicit-locking.md#locking-pages)
  * [13.3.4. 死結](https://docs.postgresql.tw/19/the-sql-language/mvcc/explicit-locking.md#locking-deadlocks)
  * [13.3.5. 諮詢鎖定](https://docs.postgresql.tw/19/the-sql-language/mvcc/explicit-locking.md#advisory-locks)
* [13.4. 應用程式層級的資料一致性檢查](https://docs.postgresql.tw/19/the-sql-language/mvcc/applevel-consistency.md)
  * [13.4.1. 以 Serializable 交易確保一致性](https://docs.postgresql.tw/19/the-sql-language/mvcc/applevel-consistency.md#serializable-consistency)
  * [13.4.2. 以明確的阻擋式鎖定確保一致性](https://docs.postgresql.tw/19/the-sql-language/mvcc/applevel-consistency.md#non-serializable-consistency)
* [13.5. 序列化失敗的處理](https://docs.postgresql.tw/19/the-sql-language/mvcc/mvcc-serialization-failure-handling.md)
* [13.6. 注意事項](https://docs.postgresql.tw/19/the-sql-language/mvcc/mvcc-caveats.md)
* [13.7. 鎖定與索引](https://docs.postgresql.tw/19/the-sql-language/mvcc/locking-indexes.md)

本章說明當兩個或更多工作階段同時嘗試存取相同資料時，PostgreSQL 資料庫系統的行為。在這種情況下的目標，是在維持嚴格資料完整性的同時，讓所有工作階段都能有效率地存取資料。每一位資料庫應用程式的開發人員都應該熟悉本章所涵蓋的主題。

***

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