]> begriffs open source - ai-pg/blob - full-docs/txt/xact-locking.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / xact-locking.txt
1
2 67.2. Transactions and Locking #
3
4    The transaction IDs of currently executing transactions are shown in
5    pg_locks in columns virtualxid and transactionid. Read-only
6    transactions will have virtualxids but NULL transactionids, while both
7    columns will be set in read-write transactions.
8
9    Some lock types wait on virtualxid, while other types wait on
10    transactionid. Row-level read and write locks are recorded directly in
11    the locked rows and can be inspected using the pgrowlocks extension.
12    Row-level read locks might also require the assignment of multixact IDs
13    (mxid; see Section 24.1.5.1).