> 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/the-sql-language/mvcc.md).

# Chapter 13. Concurrency Control

**Table of Contents**

[13.1. Introduction](/the-sql-language/mvcc/mvcc-intro.md)

[13.2. Transaction Isolation](/the-sql-language/mvcc/transaction-iso.md) : [13.2.1. Read Committed Isolation Level](/the-sql-language/mvcc/transaction-iso.md#XACT-READ-COMMITTED)

```
[13.2.2. Repeatable Read Isolation Level](transaction-iso.md#XACT-REPEATABLE-READ)

[13.2.3. Serializable Isolation Level](transaction-iso.md#XACT-SERIALIZABLE)
```

[13.3. Explicit Locking](/the-sql-language/mvcc/explicit-locking.md) : [13.3.1. Table-Level Locks](/the-sql-language/mvcc/explicit-locking.md#LOCKING-TABLES)

```
[13.3.2. Row-Level Locks](explicit-locking.md#LOCKING-ROWS)

[13.3.3. Page-Level Locks](explicit-locking.md#LOCKING-PAGES)

[13.3.4. Deadlocks](explicit-locking.md#LOCKING-DEADLOCKS)

[13.3.5. Advisory Locks](explicit-locking.md#ADVISORY-LOCKS)
```

[13.4. Data Consistency Checks at the Application Level](/the-sql-language/mvcc/applevel-consistency.md) : [13.4.1. Enforcing Consistency with Serializable Transactions](/the-sql-language/mvcc/applevel-consistency.md#SERIALIZABLE-CONSISTENCY)

```
[13.4.2. Enforcing Consistency with Explicit Blocking Locks](applevel-consistency.md#NON-SERIALIZABLE-CONSISTENCY)
```

[13.5. Serialization Failure Handling](/the-sql-language/mvcc/mvcc-serialization-failure-handling.md)

[13.6. Caveats](/the-sql-language/mvcc/mvcc-caveats.md)

[13.7. Locking and Indexes](/the-sql-language/mvcc/locking-indexes.md)

This chapter describes the behavior of the PostgreSQL database system when two or more sessions try to access the same data at the same time. The goals in that situation are to allow efficient access for all sessions while maintaining strict data integrity. Every developer of database applications should be familiar with the topics covered in this chapter.

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/mvcc.html)（英文原文，待翻譯）


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.postgresql.tw/the-sql-language/mvcc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
