1
0
forked from docs/doc-exports
doc-exports/docs/dws/dev/dws_04_0747.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

8.4 KiB

PG_RUNNING_XACTS

PG_RUNNING_XACTS displays the running transaction information on the current node.

Table 1 PG_RUNNING_XACTS columns

Name

Type

Description

handle

integer

Handle corresponding to the transaction in GTM

gxid

xid

Transaction ID

state

tinyint

Transaction status (3: prepared; 0: starting)

node

text

Node name

xmin

xid

Minimum transaction ID xmin on the node

vacuum

boolean

Whether the current transaction is lazy vacuum

timeline

bigint

Number of database restarts

prepare_xid

xid

Transaction ID in the prepared status. If the status is not prepared, the value is 0.

pid

bigint

Thread ID corresponding to the transaction

next_xid

xid

Transaction ID sent from a CN to a DN