]> begriffs open source - ai-pg/blob - full-docs/txt/view-pg-prepared-xacts.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / view-pg-prepared-xacts.txt
1
2 53.17. pg_prepared_xacts #
3
4    The view pg_prepared_xacts displays information about transactions that
5    are currently prepared for two-phase commit (see PREPARE TRANSACTION
6    for details).
7
8    pg_prepared_xacts contains one row per prepared transaction. An entry
9    is removed when the transaction is committed or rolled back.
10
11    Table 53.17. pg_prepared_xacts Columns
12
13    Column Type
14
15    Description
16
17    transaction xid
18
19    Numeric transaction identifier of the prepared transaction
20
21    gid text
22
23    Global transaction identifier that was assigned to the transaction
24
25    prepared timestamptz
26
27    Time at which the transaction was prepared for commit
28
29    owner name (references pg_authid.rolname)
30
31    Name of the user that executed the transaction
32
33    database name (references pg_database.datname)
34
35    Name of the database in which the transaction was executed
36
37    When the pg_prepared_xacts view is accessed, the internal transaction
38    manager data structures are momentarily locked, and a copy is made for
39    the view to display. This ensures that the view produces a consistent
40    set of results, while not blocking normal operations longer than
41    necessary. Nonetheless there could be some impact on database
42    performance if this view is frequently accessed.