Files
doc-exports/docs/dws/dev/dws_04_0843.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.6 KiB
HTML

<a name="EN-US_TOPIC_0000001764492060"></a><a name="EN-US_TOPIC_0000001764492060"></a>
<h1 class="topictitle1">PGXC_WORKLOAD_SQL_COUNT</h1>
<div id="body1578646433480"><p id="EN-US_TOPIC_0000001764492060__p8060118"><strong id="EN-US_TOPIC_0000001764492060__b1035203614417">PGXC_WORKLOAD_SQL_COUNT</strong> displays statistics on the number of SQL statements executed in workload Cgroups on all CNs in a cluster, including the number of <strong id="EN-US_TOPIC_0000001764492060__b8361036154115">SELECT</strong>, <strong id="EN-US_TOPIC_0000001764492060__b1837103619410">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001764492060__b237336134119">INSERT</strong>, and <strong id="EN-US_TOPIC_0000001764492060__b1038336114119">DELETE</strong> statements and the number of DDL, DML, and DCL statements. Only the system administrator or the preset role <strong id="EN-US_TOPIC_0000001764492060__b1777622485118">gs_role_read_all_stats</strong> can access this view.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764492060__table15131136684" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="EN-US_TOPIC_0000001764492060__b986411514219">PGXC_WORKLOAD_SQL_COUNT</strong> columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001764492060__row113836489"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001764492060__p141413361689"><strong id="EN-US_TOPIC_0000001764492060__b13219850474392">Column</strong></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_0000001764492060__p17142364810">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_0000001764492060__p111418361810">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001764492060__row11141236685"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764492060__p61483611813">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_0000001764492060__p4146364810">Name</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764492060__p15142365818">Node name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764492060__row18147361784"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764492060__p1314536981">workload</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764492060__p81416361288">Name</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764492060__p1143366810">Workload Cgroup name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764492060__row31412361580"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764492060__p014636786">select_count</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764492060__p1214436789">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764492060__p14156367818">Number of <strong id="EN-US_TOPIC_0000001764492060__b648673110294">SELECT</strong> statements.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764492060__row3154361982"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764492060__p20151836889">update_count</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764492060__p19151361485">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764492060__p51517361987">Number of <strong id="EN-US_TOPIC_0000001764492060__b14993123432913">UPDATE</strong> statements.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764492060__row71533610819"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764492060__p14151136181">insert_count</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764492060__p31515361086">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764492060__p515203620818">Number of <strong id="EN-US_TOPIC_0000001764492060__b164671237152913">INSERT</strong> statements.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764492060__row1915193615811"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764492060__p1415133618810">delete_count</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764492060__p16150361985">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764492060__p1015936987">Number of <strong id="EN-US_TOPIC_0000001764492060__b16605133912291">DELETE</strong> statements.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764492060__row181518361387"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764492060__p10159361812">ddl_count</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764492060__p2155361588">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764492060__p71520361481">Number of <strong id="EN-US_TOPIC_0000001764492060__b376864114291">DDL</strong> statements.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764492060__row16331121131010"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764492060__p933721191011">dml_count</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764492060__p234112111101">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764492060__p8342021161012">Number of <strong id="EN-US_TOPIC_0000001764492060__b128491543132914">DML</strong> statements.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764492060__row11515256105"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764492060__p20151325141014">dcl_count</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764492060__p31511825151018">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764492060__p5151925191011">Number of <strong id="EN-US_TOPIC_0000001764492060__b1788024518292">DCL</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>