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

87 lines
7.5 KiB
HTML

<a name="EN-US_TOPIC_0000001188642168"></a><a name="EN-US_TOPIC_0000001188642168"></a>
<h1 class="topictitle1">PGXC_WORKLOAD_SQL_COUNT</h1>
<div id="body1578646433480"><p id="EN-US_TOPIC_0000001188642168__p8060118"><strong id="EN-US_TOPIC_0000001188642168__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_0000001188642168__b8361036154115">SELECT</strong>, <strong id="EN-US_TOPIC_0000001188642168__b1837103619410">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001188642168__b237336134119">INSERT</strong>, and <strong id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__table15131136684" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="EN-US_TOPIC_0000001188642168__b986411514219">PGXC_WORKLOAD_SQL_COUNT</strong> columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188642168__row113836489"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188642168__p141413361689">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_0000001188642168__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_0000001188642168__p111418361810">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188642168__row11141236685"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__p15142365818">Node name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642168__row18147361784"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__p1143366810">Workload Cgroup name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642168__row31412361580"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__p14156367818">Number of <strong id="EN-US_TOPIC_0000001188642168__b356516301421">SELECT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642168__row3154361982"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__p51517361987">Number of <strong id="EN-US_TOPIC_0000001188642168__b1257193374218">UPDATE</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642168__row71533610819"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__p515203620818">Number of <strong id="EN-US_TOPIC_0000001188642168__b85531836184215">INSERT</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642168__row1915193615811"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__p1015936987">Number of <strong id="EN-US_TOPIC_0000001188642168__b1512133984216">DELETE</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642168__row181518361387"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__p71520361481">Number of <strong id="EN-US_TOPIC_0000001188642168__b11653104204216">DDL</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642168__row16331121131010"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__p8342021161012">Number of <strong id="EN-US_TOPIC_0000001188642168__b146951145144213">DML</strong> statements</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642168__row11515256105"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642168__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_0000001188642168__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_0000001188642168__p5151925191011">Number of <strong id="EN-US_TOPIC_0000001188642168__b1787616486424">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>