doc-exports/docs/dws/dev/dws_04_0844.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
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>
2024-05-16 07:24:04 +00:00

150 lines
14 KiB
HTML

<a name="EN-US_TOPIC_0000001188642208"></a><a name="EN-US_TOPIC_0000001188642208"></a>
<h1 class="topictitle1">PGXC_WORKLOAD_SQL_ELAPSE_TIME</h1>
<div id="body1578646433481"><p id="EN-US_TOPIC_0000001188642208__p8060118"><strong id="EN-US_TOPIC_0000001188642208__b851654164315">PGXC_WORKLOAD_SQL_ELAPSE_TIME</strong> displays statistics on the response time of SQL statements in workload Cgroups on all CNs in a cluster, including the maximum, minimum, average, and total response time of <strong id="EN-US_TOPIC_0000001188642208__b125166419435">SELECT</strong>, <strong id="EN-US_TOPIC_0000001188642208__b151714416431">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001188642208__b125183434313">INSERT</strong>, and <strong id="EN-US_TOPIC_0000001188642208__b951864144313">DELETE</strong> statements. The unit is microsecond. Only the system administrator or the preset role <strong id="EN-US_TOPIC_0000001188642208__b1094233113517">gs_role_read_all_stats</strong> can access this view.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188642208__table991091311370" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="EN-US_TOPIC_0000001188642208__b18468748104315">PGXC_WORKLOAD_SQL_ELAPSE_TIME</strong> columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188642208__row1910213113713"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188642208__p891011343715">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001188642208__p391181312379">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001188642208__p179111813103711">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188642208__row1854144612412"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p35414632410">node_name</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p175494612244">name</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p1554194617241">Node name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row291161343720"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p2911141393712">workload</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p1391131311379">name</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p291111135377">Workload Cgroup name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row14911713133715"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p18907134714148">total_select_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p139115137375">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p814611507147">Total response time of <strong id="EN-US_TOPIC_0000001188642208__b146457115449">SELECT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row865082410399"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p1390604718142">max_select_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p17650424113914">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p131451503147">Maximum response time of <strong id="EN-US_TOPIC_0000001188642208__b145068464414">SELECT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row1856242117391"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p690514715141">min_select_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p1656211214395">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p1114513507145">Minimum response time of <strong id="EN-US_TOPIC_0000001188642208__b1450057144413">SELECT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row16171519143913"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p3904194741411">avg_select_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p5171419163917">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p11144050121415">Average response time of <strong id="EN-US_TOPIC_0000001188642208__b107759104443">SELECT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row1241918143919"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p119039473146">total_update_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p542098193912">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p14143115011144">Total response time of <strong id="EN-US_TOPIC_0000001188642208__b717415138448">UPDATE</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row1150012153912"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p8902194710146">max_update_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p171509128395">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p15141950151418">Maximum response time of <strong id="EN-US_TOPIC_0000001188642208__b12337416174415">UPDATE</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row10911121313715"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p1488024712145">min_update_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p1791141312378">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p16140650121417">Minimum response time of <strong id="EN-US_TOPIC_0000001188642208__b5173919104418">UPDATE</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row144016536152"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p10401353131513">avg_update_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p14015539159">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p140195315152">Average response time of <strong id="EN-US_TOPIC_0000001188642208__b2030918227448">UPDATE</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row2475856181514"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p20475155618155">total_insert_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p12475205661512">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p14751356201516">Total response time of <strong id="EN-US_TOPIC_0000001188642208__b219311252446">INSERT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row566014591152"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p1166015911514">max_insert_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p17660185911513">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p9660195921511">Maximum response time of <strong id="EN-US_TOPIC_0000001188642208__b16139112864417">INSERT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row1482443191619"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p1282443101615">min_insert_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p2082443161614">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p2824153201611">Minimum response time of <strong id="EN-US_TOPIC_0000001188642208__b78261630134413">INSERT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row129051116160"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p690611115169">avg_insert_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p10906111161614">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p5906201191615">Average response time of <strong id="EN-US_TOPIC_0000001188642208__b102881433164420">INSERT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row14524448181610"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p1652510483169">total_delete_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p552514488168">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p45251848101612">Total response time of <strong id="EN-US_TOPIC_0000001188642208__b1778633512443">DELETE</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row147971351111618"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p0798185151610">max_delete_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p179855114162">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p379845171615">Maximum response time of <strong id="EN-US_TOPIC_0000001188642208__b6787183834419">DELETE</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row15464958111619"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p184641458191612">min_delete_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p1646595816165">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p14465135831620">Minimum response time of <strong id="EN-US_TOPIC_0000001188642208__b155741241184412">DELETE</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642208__row092812545162"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642208__p10928135491616">avg_delete_elapse</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642208__p159281554121618">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642208__p11928155415169">Average response time of <strong id="EN-US_TOPIC_0000001188642208__b153691441448">DELETE</strong> statements</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>