doc-exports/docs/dws/dev/dws_04_1202.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 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-11-02 09:07:47 +00:00

73 lines
6.5 KiB
HTML

<a name="EN-US_TOPIC_0000001460882652"></a><a name="EN-US_TOPIC_0000001460882652"></a>
<h1 class="topictitle1">GS_BLOCKLIST_QUERY</h1>
<div id="body0000001336901458"><p id="EN-US_TOPIC_0000001460882652__a1bc8317ebf214ab091f7d7d859a491e4"><strong id="EN-US_TOPIC_0000001460882652__b1323872315333">GS_BLOCKLIST_QUERY</strong> is used to query job blocklist and exception information. This view is obtained by associating system catalogs <a href="dws_04_1006.html">GS_BLOCKLIST_QUERY</a> and <a href="dws_04_0566.html">GS_WLM_SESSION_INFO</a>, and deduplicating query results. If the <strong id="EN-US_TOPIC_0000001460882652__b574613377413">GS_WLM_SESSION_INFO</strong> table is large, the query may take a long time.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001460882652__t73a6cdcc6f5f407295f7a10661f77795" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GS_BLOCKLIST_QUERY columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001460882652__ra23f56ada4d84851b753595c22721838"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001460882652__a6685836e60f04997906362bfd62f3a42">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001460882652__ad16ba1201c9a4d72ade48d71c3788f58">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001460882652__a9c975ac569864d5b80459f4bca046b96">Reference</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001460882652__a08e09097ed544fedbb34f3242c05c354">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001460882652__r91b8d572acb64edea74d520b11c61878"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460882652__a7b89f3fbb5fb4b2f8903cd479643f43a">unique_sql_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460882652__ae0734c9620564b87b7524ca4323c09c3">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460882652__a5f2876def31447268b59a7f270d6e2cc">-</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001460882652__p74501851204017">Unique query ID generated based on the query parsing tree.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460882652__r27e7e2b516a24187979572cc46a0abfa"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460882652__p943414315515">block_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460882652__a3b783ea08458435085e3498675ef38b2">boolean</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460882652__p96132274013">-</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001460882652__p34491451184016">Check whether a job is in the blocklist.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460882652__r8967ebf498a743a7a5366f783afd31e8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460882652__a68fcf5cd58db4b9ba2d9c8c201aedec8">except_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460882652__p41281420115210">integer</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460882652__a4dc8f9fb8c6048788c439a59f61feab4">-</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001460882652__p344911511406">Query the number of job exceptions.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460882652__rfc403dd65527452fbcce8f5e27bfceb4"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460882652__a76aa1090abdc42668a06290e4dd2c556">except_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460882652__p131493363526">timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460882652__p7761132494019">-</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001460882652__p1344745184017">Query the time when the last job exception occurred.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460882652__row166911831181111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460882652__p96911531111113">query</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460882652__p1369120311112">text</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460882652__p5691193101115">-</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001460882652__p10691731141116">Statement to be executed.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="EN-US_TOPIC_0000001460882652__note2017183917342"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001460882652__ul11300113462112"><li id="EN-US_TOPIC_0000001460882652__li146110242195">This view can be queried only in the <strong id="EN-US_TOPIC_0000001460882652__b28515416437"></strong><strong id="EN-US_TOPIC_0000001460882652__b28517412431"><span id="EN-US_TOPIC_0000001460882652__text1462184614508">gaussdb</span></strong> database. If it is queried in other databases, an error will be reported.</li><li id="EN-US_TOPIC_0000001460882652__li1693184305411">Generally, constant values are ignored during unique SQL ID calculation in DML statements. However, constant values cannot be ignored in DDL, DCL, and parameter setting statements. A <strong id="EN-US_TOPIC_0000001460882652__b16281114816467">unique_sql_id</strong> may correspond to one or more queries.</li></ul>
</div></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>