2 53.17. pg_prepared_xacts #
4 The view pg_prepared_xacts displays information about transactions that
5 are currently prepared for two-phase commit (see PREPARE TRANSACTION
8 pg_prepared_xacts contains one row per prepared transaction. An entry
9 is removed when the transaction is committed or rolled back.
11 Table 53.17. pg_prepared_xacts Columns
19 Numeric transaction identifier of the prepared transaction
23 Global transaction identifier that was assigned to the transaction
27 Time at which the transaction was prepared for commit
29 owner name (references pg_authid.rolname)
31 Name of the user that executed the transaction
33 database name (references pg_database.datname)
35 Name of the database in which the transaction was executed
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.