PG_PREPARED_XACTS
PG_PREPARED_XACTS displays information about transactions that are currently prepared for two-phase commit. In the multi-tenancy scenario, global information is returned if this view is accessed in a non-PDB, and information about a PDB is returned if this view is accessed in the PDB.
| Name | Type | Reference | Description |
|---|---|---|---|
| transaction | xid | - | Numeric identifier of the prepared transaction. |
| gid | text | - | Global identifier of the prepared transaction. |
| prepared | timestamp with time zone | - | Time at which the transaction is prepared for commit. |
| owner | name | rolname in PG_AUTHID. | Name of the user who executes the transaction. |
| database | name | PG_DATABASE.datname | Name of the database that executes the transaction. |