September 25, 2025: PostgreSQL 18 Released!
DocumentationPostgreSQL devel (2025年09月25日 15:24:14 - git commit 507aa16125c)
Supported Versions: Current (18) / 17 / 16
Development Versions: devel
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.
67.2. Transactions and Locking
Prev Up Chapter 67. Transaction Processing Home Next

67.2. Transactions and Locking #

The transaction IDs of currently executing transactions are shown in pg_locks in columns virtualxid and transactionid. Read-only transactions will have virtualxids but NULL transactionids, while both columns will be set in read-write transactions.

Some lock types wait on virtualxid, while other types wait on transactionid. Row-level read and write locks are recorded directly in the locked rows and can be inspected using the pgrowlocks extension. Row-level read locks might also require the assignment of multixact IDs (mxid; see Section 24.1.5.1).


Prev Up Next
67.1. Transactions and Identifiers Home 67.3. Subtransactions

AltStyle によって変換されたページ (->オリジナル) /