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

94 lines
8.4 KiB
HTML

<a name="EN-US_TOPIC_0000001145694633"></a><a name="EN-US_TOPIC_0000001145694633"></a>
<h1 class="topictitle1">PG_RUNNING_XACTS</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001145694633__a674de2dec1c2438583910f1afa8e5509"><strong id="EN-US_TOPIC_0000001145694633__b84235270610133">PG_RUNNING_XACTS</strong> displays the running transaction information on the current node.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145694633__t26555d21671e48da8c7ac813458f9e20" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_RUNNING_XACTS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145694633__r2a9a4c71185e4e53a4849c7f9e8b2946"><th align="left" class="cellrowborder" valign="top" width="23.330000000000002%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001145694633__a564820d682b74292b93e9c70048ea058"><strong id="EN-US_TOPIC_0000001145694633__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_0000001145694633__ade48d6e7a52947a8aa83e30359eadaa4">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_0000001145694633__a0926945de2a84910bf3247644de27e45">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001145694633__r763a39f9e9674198a994a17eca0808be"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__a3ffb020b2e354c5baacb06f5b3e06ce2">handle</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694633__ab55582224b6e4d4a876ee0f492a3b10c">integer</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694633__af1dfb9db4cb2428da2d5357a770a950a">Handle corresponding to the transaction in GTM</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694633__re1e6733729a84bbebc119a98a591edc7"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__adc38e19cc58a47598ec7ef85350104dc">gxid</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694633__afb795341df8440c6b35e9a4ecdf8c8c4">xid</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694633__abaaf46ca940b407ca172f426e225938d">Transaction ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694633__r6dc54f91a41d4a2ca0579bd6186fc9b8"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__a3c52081670b64d61bbb9663ef7f7aa0c">state</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694633__ad15886b852fe421db206ade8bd954b4f">tinyint</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694633__ab95380e3a1724e878a8302c73d042a8f">Transaction status (<strong id="EN-US_TOPIC_0000001145694633__b84235270612546">3</strong>: prepared; <strong id="EN-US_TOPIC_0000001145694633__b842352706125410">0</strong>: starting)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694633__rdeca6d36129346a7a6254f706ed588af"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__a1f8f68e56eb441e6ac95cb53dd373a06">node</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694633__a777a4c5291584546bdeb9fefdf95e232">text</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694633__a24b945d73fee4b4ab090dbfb3e4ca890">Node name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694633__r44a12377adab4916bf43c3117c4da892"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__afc862d1e93fc40b5b0c41d2ad76d4000">xmin</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694633__a400a2f8acfe545fd983ebe33416e70a6">xid</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694633__a940d4f3057e1433797cc988ceada1b95">Minimum transaction ID <strong id="EN-US_TOPIC_0000001145694633__b84235270610145">xmin</strong> on the node</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694633__r7202f4312b544a5ba53152d8925d3f0c"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__a66e651ca251b467a9d9f946cfc8c7df2">vacuum</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694633__a86de781ae6784412b6736519635972ec"><span id="EN-US_TOPIC_0000001145694633__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_0000001145694633__a3efc3a7795aa40d88cf44c7308b203bc">Whether the current transaction is lazy vacuum</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694633__r9854462b2135458fb8fff6cc8c43e6cb"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__a5d91f8bdb74a47198cdf09bda72365a5">timeline</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694633__ab3260ec0c56f472194de7afa854a89e1">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694633__a1db3c892a3194538aae89282c1f6e739">Number of database restarts</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694633__rccccd85ea13949c0a2a10794c87a5993"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__a30cfed9c8c8c431d9510b23b5d19d4cf">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_0000001145694633__a9588366890dc42768a078a6935fb5972">xid</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694633__acd61f29df532468a9ac36f34f27ff978">Transaction ID in the <strong id="EN-US_TOPIC_0000001145694633__b842352706101757">prepared</strong> status. If the status is not <strong id="EN-US_TOPIC_0000001145694633__b84235270610179">prepared</strong>, the value is <strong id="EN-US_TOPIC_0000001145694633__b842352706101722">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694633__r5ef3d59a5b724be381e79711c99a06bd"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__ae07424ebd11745f09265d409563d4d33">pid</p>
</td>
<td class="cellrowborder" valign="top" width="15.790000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694633__a08c5f09a3cc0481b958a7e394af7e2b9">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694633__a19538bd902924fcaa2807ea698f46df9">Thread ID corresponding to the transaction</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694633__rcfdd34743a564e09b1458dcf9815e0b8"><td class="cellrowborder" valign="top" width="23.330000000000002%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694633__aa252aaff007547f1b3fd51f000f1bef0">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_0000001145694633__af1a0f4974bbf467486c95009e5bf4c7e">xid</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694633__a4bda7b6d10d6438ca6cca9a8aa9a34d7">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>