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>
124 lines
11 KiB
HTML
124 lines
11 KiB
HTML
<a name="EN-US_TOPIC_0000001188482162"></a><a name="EN-US_TOPIC_0000001188482162"></a>
|
|
|
|
<h1 class="topictitle1">PGXC_WLM_WORKLOAD_RECORDS</h1>
|
|
<div id="body1514010512819"><p id="EN-US_TOPIC_0000001188482162__a42c6eef97ea14d018734f40aecbbcf37"><strong id="EN-US_TOPIC_0000001188482162__b15244587508">PGXC_WLM_WORKLOAD_RECORDS</strong> displays the status of job executed by the current user on CNs. Only the system administrator or the preset role <strong id="EN-US_TOPIC_0000001188482162__b1288095910504">gs_role_read_all_stats</strong> can access this view. This view is available only when <strong id="EN-US_TOPIC_0000001188482162__b1540215413515">enable_dynamic_workload</strong> is set to <strong id="EN-US_TOPIC_0000001188482162__b64086411515">on</strong>.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188482162__td717b2205d7c4898aa87220b791af159" 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_0000001188482162__rffeb6ba485004950aa3351a39e4c37b1"><th align="left" class="cellrowborder" valign="top" width="25.25%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188482162__ac60a8dbc81cc4eb8a40bca1fa50d9ea8">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_0000001188482162__afc02828c897c4e1bb579de08b21f5a3d">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_0000001188482162__af4c7932a5e5741b1ac236149316e08dc">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188482162__r65245aa09cef47da8e4a269074d3089f"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__a369171d5105047008a942d3fa01b6211">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_0000001188482162__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_0000001188482162__a92981a55c9f644c1affab7fb59b590d8">Name of the CN where the job is executed</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__r6318b8fb397047c3a3d5891dcab3af7a"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__aaf9198515a364ec5a75f97c59613963a">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_0000001188482162__ac4db78ad5d6d4120b303a1f4645f6f0e">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482162__a8eb2da91e7604fdb81020d153fe5dad4">ID of the backend thread</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__r6eb2a648f32d4066b759bc90a4370df1"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__a5d4938bb7cc047ffa530bc1f3eacff26">processid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482162__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_0000001188482162__a575506823fab4463a973793d66fcf968">lwpid of a thread</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__rcff7db3b8eb94ebebae8c5a2d8d03fa7"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__a03ad610290084e9a941178b15cadc1e7">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482162__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_0000001188482162__a0e1a0e732adb4229a389bdc3b3362e47">Time when a statement starts to be executed</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__r88bde4004ad044798c4f3cd453375000"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__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_0000001188482162__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_0000001188482162__en-us_topic_0059778622_p10961634651">Name of the user logging in to the backend</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__r446296371138443da40146d1551badaa"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__a006744eab928482f87a057511be87216">memory</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482162__aa2036e71f8bd4e2d8d762c0b82eea957">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482162__a67993444ba15471a9721f7855800e7ce">Memory required by a statement</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__rc6910e2b897a4f64ba1f6de00b8b463b"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__a420d553451b34d76a51c96a81fd87c4a">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_0000001188482162__a718aa1a507fa456fb78480cbd8c4494a">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482162__a638f473531c449e19b3e2619e75a5ae2">Number of resources consumed by a statement in a resource pool</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__r4b1796cabe9740fa8b62c509d862c9ef"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__a6debf3cb1fe147f2b579ae4083f3d61d">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_0000001188482162__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_0000001188482162__ad2d248117cfd46fbbb24ec917b3560f5">Maximum number of resources in a resource pool</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__r6478a39630244cc8bb791baa0b145e28"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__aad87c11139ca4c30ab8eed22d56d585a">priority</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482162__aa617495d242c42b1af3e09624f63b0f0">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482162__a2ac6a3f774684e6aa9aa370f97ffa2dd">Priority of a job</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__rbee6a5692fea424ca5e8f361ce92bda2"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__ab1cc828dcb2b425498c0b0b9cd16b7f5">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_0000001188482162__adb1de7b687c14ebcbf3ba7dfd27e9482">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482162__aa34da7d71aa04a73b64de9721d9827f1">Resource pool of a job</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__r7637eaaac41948b7b01b12fbadac25d7"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__a3b9baee26ec546a9a56768253b333178">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482162__a023ff2f25cae4649a6b762e50d5e5ee2">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482162__a8dfbc226ede84b58961518265f598181">Job execution status. Its value can be:</p>
|
|
<ul id="EN-US_TOPIC_0000001188482162__ul482468805"><li id="EN-US_TOPIC_0000001188482162__li12824386013"><strong id="EN-US_TOPIC_0000001188482162__b842352706153110">pending</strong></li><li id="EN-US_TOPIC_0000001188482162__li108245818011"><strong id="EN-US_TOPIC_0000001188482162__b842352706153124">running</strong></li><li id="EN-US_TOPIC_0000001188482162__li14825287012"><strong id="EN-US_TOPIC_0000001188482162__b842352706153133">finished</strong></li><li id="EN-US_TOPIC_0000001188482162__li1382514815012"><strong id="EN-US_TOPIC_0000001188482162__b842352706153152">aborted</strong></li><li id="EN-US_TOPIC_0000001188482162__li18825681608"><strong id="EN-US_TOPIC_0000001188482162__b84235270615322">unknown</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__row14781337487"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__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_0000001188482162__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_0000001188482162__p15911194195313">Cgroups used by a job</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__row1696189482"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__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_0000001188482162__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_0000001188482162__p196921854817">Queue that a job is in. Its value can be:</p>
|
|
<ul id="EN-US_TOPIC_0000001188482162__ul11215101313010"><li id="EN-US_TOPIC_0000001188482162__li62156131605"><strong id="EN-US_TOPIC_0000001188482162__b842352706153239">GLOBAL</strong>: global queue</li><li id="EN-US_TOPIC_0000001188482162__li62159130011"><strong id="EN-US_TOPIC_0000001188482162__b842352706153322">RESPOOL</strong>: resource pool queue</li><li id="EN-US_TOPIC_0000001188482162__li10215101317020"><strong id="EN-US_TOPIC_0000001188482162__b842352706153350">ACTIVE</strong>: not in a queue</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482162__r6f02252a7632423d983ccfab66b94f78"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482162__a6aa0726b8c4e4445aefc73c8968739de">query</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482162__ad98cd7cb4b244fe1b374b383c7c4eb99">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.62%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482162__aaf21a10b848140efb4df3f73f1c6b761">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>
|
|
|