doc-exports/docs/dws/dev/dws_04_0747.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:24:04 +00:00

94 lines
8.4 KiB
HTML

<a name="EN-US_TOPIC_0000001188482228"></a><a name="EN-US_TOPIC_0000001188482228"></a>
<h1 class="topictitle1">PG_RUNNING_XACTS</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001188482228__ab90ab74380b84f6589efb4b30be08249"><strong id="EN-US_TOPIC_0000001188482228__b15116514142214">PG_RUNNING_XACTS</strong> displays information about running transactions on the current node.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188482228__tc16b232b026343849e969a5ca93badb8" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_RUNNING_XACTS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188482228__r191be9a9624c47f09967d8b6c01866ba"><th align="left" class="cellrowborder" valign="top" width="23.330000000000002%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188482228__a0c4d6c60b9c645d2b3e2b2dc44c713f0"><strong id="EN-US_TOPIC_0000001188482228__b84235270691445">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.790000000000001%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001188482228__a6a13ee0c53984f5ebb7ba174025b32a0">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60.88%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001188482228__ad27fc3806b2c476ba354ed7d932484a1">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188482228__rcb241a8c9b184c2093235f88923a9d6b"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__a443245f71d404c90ae1a91357cc7e398">handle</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__aaa3a792ca2b743f8b1d706db6b815bc0">integer</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__a233a656228614e1596a5dd64c769e7b6">Handle corresponding to the transaction in GTM</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482228__r91a26f226bc64bacb1051162fa9e5640"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__a08b5fe8e238248eebb46825fa2cefc35">gxid</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__a93c2fa62ff7c4f07a90d0b9073d9ddb3">xid</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__ad55b4f3fa5bb4276bfefc96a0f1583ec">Transaction ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482228__r41235c0e76fb41ec86ad62164eb5f25b"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__a62e18d62e41747d7b267efebf20737f8">state</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__a092b2a0e68274752ad086526ce2f4bc5">tinyint</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__a28e6a8802f0e498fb1bab432538e0584">Transaction status (<strong id="EN-US_TOPIC_0000001188482228__b213939674841549">3</strong>: prepared or <strong id="EN-US_TOPIC_0000001188482228__b126462830841549">0</strong>: starting)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482228__rc547ea8167e7424a869a40096cd85fd6"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__aa0f1f0678d574fbc8570af54b0b002c1">node</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__ab2ffa973b26349e892bb7148b5fe716f">text</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__a83cc8edf927d436b94a42bc54db55772">Node name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482228__r4427dd5ade8c437281b8db8cb7b96c6c"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__a563f264ff00b4e84ae72ad214d90af9d">xmin</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__a32d7466db6004966b584df4964af1967">xid</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__a401c204ffcea4323b3992852e3fcff5b">Minimum transaction ID <strong id="EN-US_TOPIC_0000001188482228__b193374545441549">xmin</strong> on the node</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482228__rf8c9ad3303a04f2e859674541b89544f"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__a72dbfe6804634b53b20ffec0539aa0c6">vacuum</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__acea2a5e53e4945d5a373138f5dbff358"><span id="EN-US_TOPIC_0000001188482228__text82481127163711">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__a3f8b94266ade45a7824b2808c37f832c">Whether the current transaction is lazy vacuum</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482228__r5bfde0fa198547828f7e5575d2930cca"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__a2bd64749be3f46b1a11b68355b8e86f2">timeline</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__a8d5a25126dd54dc2acb42d77d3049c72">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__a22554dd8612149f2bd8e65435c7251c1">Number of database restarts</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482228__r7efadc8f42cf40d283784bd742d0466b"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__a72f64791ce6c4263803fb523ed10029a">prepare_xid</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__afe77158396a947d6b536c2777950d510">xid</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__a1b9d95eb74df4a0f9776dc7cd26e68f6">Transaction ID in the <strong id="EN-US_TOPIC_0000001188482228__b115123191741549">prepared</strong> status. If the status is not <strong id="EN-US_TOPIC_0000001188482228__b11026098741549">prepared</strong>, the value is <strong id="EN-US_TOPIC_0000001188482228__b73732683541549">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482228__r2ae552a70d10400bb78706bd79fa0c67"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__a498446455c7d4834bc06d48cbe3d7182">pid</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__a63eb4cf91bcb449da390c3fb4fa37b67">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__a879cced44d804df9a5c1a85884e7e196">Thread ID corresponding to the transaction</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482228__r56c363a32e4c4808b52b2086fb673d11"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482228__aac2c08d9863d493e89f35f1d2741cf5d">next_xid</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482228__a65bfdb846a044928ad503aabb239e957">xid</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482228__a9f2bb545586b46ef8a5ae2a10d087c77">Transaction ID sent from a CN to a DN</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
</div>
</div>