Files
doc-exports/docs/dws/dev/dws_04_0693.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

87 lines
7.0 KiB
HTML

<a name="EN-US_TOPIC_0000001811490733"></a><a name="EN-US_TOPIC_0000001811490733"></a>
<h1 class="topictitle1">GS_SESSION_CPU_STATISTICS</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001811490733__abd4db5c7cbf445c4b4c365b5338fdae4"><strong id="EN-US_TOPIC_0000001811490733__b842352706164353">GS_SESSION_CPU_STATISTICS</strong> displays load management information about CPU usage of ongoing complex jobs executed by the current user.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001811490733__t040035450d4b45e184c38e8adde2f196" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GS_SESSION_CPU_STATISTICS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001811490733__r82f1e9e6ba8a432fa0505ca1baae5bf4"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001811490733__ad0171ec93e304971b233fbb24c8c9ca2"><strong id="EN-US_TOPIC_0000001811490733__b142392281843610">Column</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001811490733__ac3db39da9f5e4d2b9ac752c962df9bab">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001811490733__a66dd18c864c54a9ea594b9565b475aec">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001811490733__re0280d50fc3042c486c4c8c879863717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811490733__a0bee2dccc7064ea8bba25b4aaf9af17b">datid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811490733__ac45000d84a3344a7ade67a2f4ce448e2">OID</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811490733__a81e32f98e3794454b775ff7b27089480">OID of the database the backend is connected to.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811490733__rc5c6e84192e340e8a4ec24977eb442c0"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811490733__a68d7811951ca44ddb4c6e7b3276ddbb2">usename</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811490733__a5bffec3c674740349fbc130c3e204c11">Name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811490733__af80a26b9933e437e9b1c93b11ceecdda">Username logged in to the backend.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811490733__rf45f33f15d924ef58db549cb570c3e44"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811490733__afe8a4c4ca133465baaedab91f10d0280">pid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811490733__a5e907296a17843e9894df3d5b06d7503">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811490733__a989536f87161429793c7371c6cb902b1">Backend thread ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811490733__r3832b3d187c84b9dbdc3d7fcaaddaf1f"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811490733__a42d7c7b9c772466295ba7dedd0f8d031">start_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811490733__ae22502e9cdc54b069148c0c805a97990">Timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811490733__aa00e913109f940a0abfbfa62dabb6e8c">Start time of statement execution.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811490733__r780ecffa22eb41b19e125c368a2f51c1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811490733__a6bee24b616d947058585754f5f9ef2a6">min_cpu_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811490733__a3842d1b201f94644b7f8484093b5d5a5">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811490733__ab012665d0b5542ac937648bd29a3903d">Minimum CPU time of a statement across all DNs. The unit is ms.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811490733__r75359e8d07604d4fade4809aab36544b"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811490733__a5f3df740f71443d39ad29927602f4c45">max_cpu_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811490733__af95a19c16255428f8b7a03207835f110">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811490733__acec58ad0ba8e4f9b93802d061a69c9ac">Maximum CPU time of a statement across all DNs. The unit is ms.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811490733__re1da734b0920470aa829c742882d62a4"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811490733__a8f9ec0992b634360a1acf345b55b3c54">total_cpu_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811490733__a43a5c6ceec0e41a896cec8a5e809ab16">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811490733__a999bf39acbb14318ae2f5a5dc6b037b2">Total CPU time of a statement across all DNs. The unit is ms.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811490733__r9c1229f0f39f4982a0d6939b17284519"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811490733__a9baea2bf948243dcad26f3e365f5d8ef">query</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811490733__a37b0917d611d43dba0926f7727ea7f4b">Text</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811490733__a78efa6460da6415fbdcc87967e9ec108">Statement currently being executed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811490733__row4739252163715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811490733__p1873905216375">node_group</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811490733__p173905219371">Text</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811490733__p3739175203712">Logical cluster of the user running the statement.</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>