forked from docs/doc-exports
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>
65 lines
7.2 KiB
HTML
65 lines
7.2 KiB
HTML
<a name="EN-US_TOPIC_0000001460882580"></a><a name="EN-US_TOPIC_0000001460882580"></a>
|
|
|
|
<h1 class="topictitle1">GS_BLOCKLIST_QUERY</h1>
|
|
<div id="body0000001336581690"><p id="EN-US_TOPIC_0000001460882580__p1961803604511"><strong id="EN-US_TOPIC_0000001460882580__b482019718208">GS_BLOCKLIST_QUERY</strong> records job blocklist and exception information. This table uses <strong id="EN-US_TOPIC_0000001460882580__b17834132502016">unique_sql_id</strong> as the unique index to collect statistics on job exception information and record blocklist information. You can associate <strong id="EN-US_TOPIC_0000001460882580__b15971193632013">GS_BLOCKLIST_QUERY</strong> with <a href="dws_04_0566.html">GS_WLM_SESSION_INFO</a> to obtain the <strong id="EN-US_TOPIC_0000001460882580__b138981456152018">query</strong> column and execution information of a job.</p>
|
|
<p id="EN-US_TOPIC_0000001460882580__a1bc8317ebf214ab091f7d7d859a491e4">GaussDB(DWS) also provides the <a href="dws_04_1202.html">GS_BLOCKLIST_QUERY</a> view for querying job blocklist and exception information. This view can directly display the <strong id="EN-US_TOPIC_0000001460882580__b6981519122119">query</strong> column. This view depends on <strong id="EN-US_TOPIC_0000001460882580__b14610142518213">GS_WLM_SESSION_INFO</strong>. If the <strong id="EN-US_TOPIC_0000001460882580__b1532543513217">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_0000001460882580__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_0000001460882580__ra23f56ada4d84851b753595c22721838"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000001460882580__a6685836e60f04997906362bfd62f3a42">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.5.1.2"><p id="EN-US_TOPIC_0000001460882580__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_0000001460882580__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_0000001460882580__a08e09097ed544fedbb34f3242c05c354">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001460882580__r91b8d572acb64edea74d520b11c61878"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001460882580__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_0000001460882580__ae0734c9620564b87b7524ca4323c09c3">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001460882580__a5f2876def31447268b59a7f270d6e2cc">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001460882580__p74501851204017">Unique query ID generated based on the query parsing tree.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001460882580__r27e7e2b516a24187979572cc46a0abfa"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001460882580__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_0000001460882580__a3b783ea08458435085e3498675ef38b2">boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001460882580__p96132274013">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001460882580__p34491451184016">Check whether a job is in the blocklist.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001460882580__r8967ebf498a743a7a5366f783afd31e8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001460882580__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_0000001460882580__p41281420115210">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001460882580__a4dc8f9fb8c6048788c439a59f61feab4">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001460882580__p344911511406">Query the number of job exceptions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001460882580__rfc403dd65527452fbcce8f5e27bfceb4"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001460882580__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_0000001460882580__p131493363526">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001460882580__p7761132494019">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001460882580__p1344745184017">Query the time when the last job exception occurred.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="EN-US_TOPIC_0000001460882580__note2017183917342"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001460882580__ul11300113462112"><li id="EN-US_TOPIC_0000001460882580__li680719559126">The schema of this system catalog is <strong id="EN-US_TOPIC_0000001460882580__b109668525342715">dbms_om</strong>.</li><li id="EN-US_TOPIC_0000001460882580__li11179182184919">This system catalog contains unique indexes, which are distributed on DNs in hash mode. The distributed column is <strong id="EN-US_TOPIC_0000001460882580__b6217192313237">unique_sql_id</strong>.</li><li id="EN-US_TOPIC_0000001460882580__li146110242195">This system catalog can be queried only in the <strong id="EN-US_TOPIC_0000001460882580__b8899128182319"></strong><strong id="EN-US_TOPIC_0000001460882580__b1189992810236"><span id="EN-US_TOPIC_0000001460882580__text1462184614508">gaussdb</span></strong> database. If it is queried in other databases, an error will be reported.</li><li id="EN-US_TOPIC_0000001460882580__li18506173631814">The <strong id="EN-US_TOPIC_0000001460882580__b11130640132319">GS_BLOCKLIST_QUERY</strong> view is stored in <strong id="EN-US_TOPIC_0000001460882580__b88761041192316">pg_catalog</strong>.</li><li id="EN-US_TOPIC_0000001460882580__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_0000001460882580__b1529018556247">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_0561.html">System Catalogs</a></div>
|
|
</div>
|
|
</div>
|
|
|