forked from docs/doc-exports
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>
94 lines
8.5 KiB
HTML
94 lines
8.5 KiB
HTML
<a name="EN-US_TOPIC_0000001188323728"></a><a name="EN-US_TOPIC_0000001188323728"></a>
|
|
|
|
<h1 class="topictitle1">PGXC_RUNNING_XACTS</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001188323728__en-us_topic_0059777718_p84886329712"><strong id="EN-US_TOPIC_0000001188323728__b84235270616285">PGXC_RUNNING_XACTS</strong> displays information about running transactions on each node in the cluster. The content is the same as that displayed in <a href="dws_04_0747.html">PG_RUNNING_XACTS</a>.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188323728__tcc1285157c814a548da2e0b428274a8d" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PGXC_RUNNING_XACTS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188323728__ra7276752eed44c579b44da69c2f41035"><th align="left" class="cellrowborder" valign="top" width="22.759999999999998%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188323728__ace40d5a4c9394f3ba78e4dd5bd182d22"><strong id="EN-US_TOPIC_0000001188323728__b84235270691445">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.74%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001188323728__ae38ba2e3726840d9b2520dc5921a6f65">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.49999999999999%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001188323728__ad9a9ccbabd60494193fec1f1c4d4cc76">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188323728__rc616762cebab4c01a5624cc253539095"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__ac7c75e908e6747b4bb883617d7e13536">handle</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__aed4573051eb346249d7122c12e6e4561">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__a441ee09262b14dfbb2365bc7b9e96484">Handle corresponding to the transaction in GTM</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323728__r313cea209a654057aa5038225193ce16"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__ad9faa914c9b445edba1ef939a9f13949">gxid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__a0a6a67f799ad4c9a949b91f64c408e96">xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__abc59bf73c5d74cefa051554926a609f9">Transaction ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323728__r49aaea8056ae41e4961578c072ac111c"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__a5b758dce896c40d2b582f1a2e2fd804d">state</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__a1e54885d978e4d3da8d9fb01abbc5dab">tinyint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__a591a7aade81842acbca14cb3cb0c3621">Transaction status (<strong id="EN-US_TOPIC_0000001188323728__b842352706151512">3</strong>: prepared or <strong id="EN-US_TOPIC_0000001188323728__b842352706151515">0</strong>: starting)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323728__rdb2f0bb81c364361859672e7442ceaed"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__adc8ce4daa3aa41f1b50e8534d1d1a22c">node</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__a1b2028224b5e4cdd8bd2da52d3874b59">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__af1dc4d0847de494ca13f61cc0ce88544">Node name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323728__r142e099f0bb74839b05b97f61e46941b"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__aab2b8a2f339641eda863248d4498e71c">xmin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__abfdb0bec0713445ea754f5938d825ab8">xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__a15011d434ce74f5eaf4c09dae0ca9457">Minimum transaction ID <strong id="EN-US_TOPIC_0000001188323728__b84235270610145">xmin</strong> on the node</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323728__r3394b16eef52493ba7c7c70536d2d811"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__a91eb152fe6ec4c0bbcea8c952913568c">vacuum</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__a2beb1b82f1424b15b80d0f78b0dd52ef"><span id="EN-US_TOPIC_0000001188323728__text775410292395">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__ab7ea51f785fb4267adf05c8791a192de">Whether the current transaction is lazy vacuum</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323728__r66f37f904eba4dd9acfd5c1b71cef09d"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__aa0772455171c43f1ae9f36e83fdf218f">timeline</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__a15b65e0cf719437d9e95714821a80a1a">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__a0f64480edfbc4ef087e9f1c6eb93efc7">Number of database restart</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323728__r2b01e777e23a458c9b0f077ff0baac0f"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__a901704c639d34ece9830caa01fc9456b">prepare_xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__aef3c20514d0842de8f924eef6dc5cfe7">xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__a35f001b9e63343ab96a763c4e1acff1a">Transaction ID in <strong id="EN-US_TOPIC_0000001188323728__b842352706101757">prepared</strong> state. If the status is not <strong id="EN-US_TOPIC_0000001188323728__b84235270610179">prepared</strong>, the value is <strong id="EN-US_TOPIC_0000001188323728__b842352706101722">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323728__rca97ffe753e04608ae8397c8619c2f16"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__a51ac6d68e65a42408fe6e22c48e61a86">pid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__a7fb5c7025d774228b7fecdfbc5a1e846">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__ab2db9bb7fc7b4683b23d7858e3e8f3be">Thread ID corresponding to the transaction</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323728__rc58808d7893e485dbcf8ef6eaa138938"><td class="cellrowborder" valign="top" width="22.759999999999998%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323728__a0a6edeaa036347a296692424241b67af">next_xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.74%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323728__aee93b48bcb2c487d8095353397378791">xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323728__a5b1ab0c15f854a7d9feaece7d122ba71">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>
|
|
|