forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
73 lines
6.8 KiB
HTML
73 lines
6.8 KiB
HTML
<a name="EN-US_TOPIC_0000001764491776"></a><a name="EN-US_TOPIC_0000001764491776"></a>
|
|
|
|
<h1 class="topictitle1">GS_BLOCKLIST_QUERY</h1>
|
|
<div id="body0000001336901458"><p id="EN-US_TOPIC_0000001764491776__a1bc8317ebf214ab091f7d7d859a491e4"><strong id="EN-US_TOPIC_0000001764491776__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_0000001764491776__b574613377413">GS_WLM_SESSION_INFO</strong> table is large, the query may take a long time.</p>
|
|
<div class="notice" id="EN-US_TOPIC_0000001764491776__note141211414269"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001764491776__ul11300113462112"><li id="EN-US_TOPIC_0000001764491776__li20499671976">The schema of the <strong id="EN-US_TOPIC_0000001764491776__b01161247172713">GS_BLOCKLIST_QUERY</strong> view is <strong id="EN-US_TOPIC_0000001764491776__b146815494271">pg_catalog</strong>.</li><li id="EN-US_TOPIC_0000001764491776__li146110242195">The <strong id="EN-US_TOPIC_0000001764491776__b26851411284">GS_BLOCKLIST_QUERY</strong> view can be queried only in the <strong id="EN-US_TOPIC_0000001764491776__b32871623174710">postgres</strong> database. If it is queried in other databases, an error is reported.</li><li id="EN-US_TOPIC_0000001764491776__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_0000001764491776__b16281114816467">unique_sql_id</strong> may correspond to one or more queries.</li></ul>
|
|
</div></div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764491776__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_0000001764491776__ra23f56ada4d84851b753595c22721838"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000001764491776__a6685836e60f04997906362bfd62f3a42"><strong id="EN-US_TOPIC_0000001764491776__b147730349510387">Column</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.5.1.2"><p id="EN-US_TOPIC_0000001764491776__ad16ba1201c9a4d72ade48d71c3788f58">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.3.2.5.1.3"><p id="EN-US_TOPIC_0000001764491776__a9c975ac569864d5b80459f4bca046b96">Reference</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.3.2.5.1.4"><p id="EN-US_TOPIC_0000001764491776__a08e09097ed544fedbb34f3242c05c354">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001764491776__r91b8d572acb64edea74d520b11c61878"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001764491776__a7b89f3fbb5fb4b2f8903cd479643f43a">unique_sql_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001764491776__ae0734c9620564b87b7524ca4323c09c3">Bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001764491776__a5f2876def31447268b59a7f270d6e2cc">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001764491776__p74501851204017">Query ID generated based on the query parsing tree.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491776__r27e7e2b516a24187979572cc46a0abfa"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001764491776__p943414315515">block_list</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001764491776__a3b783ea08458435085e3498675ef38b2">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001764491776__p96132274013">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001764491776__p34491451184016">Check whether a job is in the blocklist.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491776__r8967ebf498a743a7a5366f783afd31e8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001764491776__a68fcf5cd58db4b9ba2d9c8c201aedec8">except_num</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001764491776__p41281420115210">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001764491776__a4dc8f9fb8c6048788c439a59f61feab4">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001764491776__p344911511406">Query the number of job exceptions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491776__rfc403dd65527452fbcce8f5e27bfceb4"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001764491776__a76aa1090abdc42668a06290e4dd2c556">except_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001764491776__p131493363526">Timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001764491776__p7761132494019">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001764491776__p1344745184017">Query the time when the last job exception occurred.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491776__row166911831181111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001764491776__p96911531111113">query</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001764491776__p1369120311112">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001764491776__p5691193101115">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001764491776__p10691731141116">Statement to be executed.</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>
|
|
|