doc-exports/docs/dws/dev/dws_04_0842.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

130 lines
11 KiB
HTML

<a name="EN-US_TOPIC_0000001145894597"></a><a name="EN-US_TOPIC_0000001145894597"></a>
<h1 class="topictitle1">PGXC_WLM_WORKLOAD_RECORDS</h1>
<div id="body1514010512819"><p id="EN-US_TOPIC_0000001145894597__a583927b00b5f4a118a00be168ddef29b"><strong id="EN-US_TOPIC_0000001145894597__b842352706153435">PGXC_WLM_WORKLOAD_RECORDS</strong> displays the status of job executed by the current user on CNs. It is accessible only to users with system administrator rights. This view is available only when <strong id="EN-US_TOPIC_0000001145894597__b670161713349">enable_dynamic_workload</strong> is set to <strong id="EN-US_TOPIC_0000001145894597__b1070151783410">on</strong>.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145894597__t8f7de6fd4a6d47f2bc7c78302a13cf4e" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PGXC_WLM_WORKLOAD_RECORDS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145894597__r6baeb1bc9a9849cb84a5bd1e0924feb2"><th align="left" class="cellrowborder" valign="top" width="25.25%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001145894597__adbb83d988a344a5dab503e8d7fcd3172">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.13%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001145894597__aaced9aedd3c04efcbc76871342033dbd">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="61.62%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001145894597__ad10e13cf1cf14bc1b1566dea8d575241">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001145894597__rca3dd15dea2c4a9d8d264053cb7150f9"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__ae49d6eb5da344421918141661becefce">node_name</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__p7880716545">text</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__a3749a39cd19146b89c0f6d03b9313ea5">Name of the CN where the job is executed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__r84dad36f19e54ff0bf5b80a5e1178e0a"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__ac3e0512ca1e2413da8a2e4865439827c">thread_id</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__a19f749d9429345aabd84f2995e8f2e8e">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__af27a5ef56801443ab4bf5a7b168df7ba">ID of the backend thread</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__r3d1d17585c154e8882147300d047f44a"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__a8470aa2529af4dd797d56e8596c23934">processid</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__p325511312545">integer</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__a361a74d3a2bf4414af2291d74f4eea9e">lwpid of a thread</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__r8a5584aeb0494205b2f87acb8d63d96c"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__a9ea22fcb2eaf45ba92968f1cac5789a3">timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__p163418289544">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__a53a51dc004a14defba731bce6b8fe05c">Time when a statement starts to be executed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__r6771f3822ad34310bc628e820e861fa1"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__en-us_topic_0059778622_p119515346513">username</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__en-us_topic_0059778622_p16967341153">name</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__en-us_topic_0059778622_p10961634651">Name of the user logging in to the backend</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__r2007046c9f3a4d6ab8cdcc8811f64e03"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__ab709659275ea46d8bafe12c0401d66ec">memory</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__a2980ce9d4cb74e779bd71112bb26f00e">integer</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__a6b23251c03c641a485382ae89a7bcd40">Memory required by a statement</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__rf89de577f5f541c0aa491c1255d374e9"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__a4ac4aeb8e5c94c588e30c7b09de4e892">active_points</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__aa7e004f1bd1449b3bb04f18683351cca">integer</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__a77618960ba6547ac9dbd3776a4a6a71a">Number of resources consumed by a statement in a resource pool</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__re7ff037d5ed545c08073f4064404e982"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__a4804205b2129459a84935c3f396ea355">max_points</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__p1333781619518">integer</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__acb561bb5e7b246b6bed4e7af98e35628">Maximum number of resources in a resource pool</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__r141c92b48fcc4b1aa5f48c58c5c7c646"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__ae04248c99fbf43bbb69d339b73f80612">priority</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__aae435d13e0824e1c8563e1576d05cf60">integer</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__a60bf981dc1014bbcbaaae55476bb06b1">Priority of a job</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__rf998c35ec9974cd3ae50fbfd8494b15f"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__a65441d654a4046e1a84a9f3f600db3ff">resource_pool</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__a703ab0ecd3534873b09219aa931ac40f">text</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__a9163c2b894e44f2bbb24a9d64eb58f93">Resource pool to which a job belongs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__rd93732dbb85048d0b8428f5c1415b184"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__a849a616e563b4dc3a5e8b6f3520bad54">status</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__aeb84b31492eb42bebe687ad8c97db4a7">text</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__abf4599d03d794da78311ce2fc2892650">Job execution status. Its value can be:</p>
<p id="EN-US_TOPIC_0000001145894597__p1710487105212"><strong id="EN-US_TOPIC_0000001145894597__b842352706153110">pending</strong></p>
<p id="EN-US_TOPIC_0000001145894597__p5126161315216"><strong id="EN-US_TOPIC_0000001145894597__b842352706153124">running</strong></p>
<p id="EN-US_TOPIC_0000001145894597__p19687125175212"><strong id="EN-US_TOPIC_0000001145894597__b842352706153133">finished</strong></p>
<p id="EN-US_TOPIC_0000001145894597__p594016353528"><strong id="EN-US_TOPIC_0000001145894597__b842352706153152">aborted</strong></p>
<p id="EN-US_TOPIC_0000001145894597__p763184420521"><strong id="EN-US_TOPIC_0000001145894597__b84235270615322">unknown</strong></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__row14781337487"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__p9479539480">control_group</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__p19299105175418">text</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__p15911194195313">Cgroups used by a job</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__row1696189482"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__p10691518134817">enqueue</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__p1669218164811">text</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__p196921854817">Queue that a job is in. Its value can be:</p>
<p id="EN-US_TOPIC_0000001145894597__p964352311533"><strong id="EN-US_TOPIC_0000001145894597__b842352706153239">GLOBAL</strong>: global queue</p>
<p id="EN-US_TOPIC_0000001145894597__p1035010343532"><strong id="EN-US_TOPIC_0000001145894597__b842352706153322">RESPOOL</strong>: resource pool queue</p>
<p id="EN-US_TOPIC_0000001145894597__p5361540205312"><strong id="EN-US_TOPIC_0000001145894597__b842352706153350">ACTIVE</strong>: not in a queue</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894597__r1dd358c6823441b7bd6cd9b8feefebdf"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894597__a26692ef52d194b98b5cbc31fed22edb8">query</p>
</td>
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894597__abcb747908f81473880d53ffce088d6f5">text</p>
</td>
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894597__a5ce2f27b361449f6b1fa5ffad33aa803">Statement that is being executed</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>