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>
66 lines
7.6 KiB
HTML
66 lines
7.6 KiB
HTML
<a name="EN-US_TOPIC_0000002057512976"></a><a name="EN-US_TOPIC_0000002057512976"></a>
|
|
|
|
<h1 class="topictitle1">GS_BLOCKLIST_SQL</h1>
|
|
<div id="body0000002057512976"><p id="EN-US_TOPIC_0000002057512976__p1961803604511"><strong id="EN-US_TOPIC_0000002057512976__b198741539205312">GS_BLOCKLIST_SQL</strong> records job blocklist and exception information. This table uses <strong id="EN-US_TOPIC_0000002057512976__b108752398533">sql_hash</strong> as the unique index to collect statistics on job exception information and record blocklist information. You can associate <strong id="EN-US_TOPIC_0000002057512976__b18751639135310">GS_BLOCKLIST_SQL</strong> with <a href="dws_04_0566.html">GS_WLM_SESSION_INFO</a> to obtain the <strong id="EN-US_TOPIC_0000002057512976__b13876183925314">query</strong> column and execution information of a job.</p>
|
|
<p id="EN-US_TOPIC_0000002057512976__a1bc8317ebf214ab091f7d7d859a491e4">GaussDB(DWS) also provides the <a href="dws_04_1246.html">GS_BLOCKLIST_SQL</a> view for querying job blocklist and exception information. This view can directly display the <strong id="EN-US_TOPIC_0000002057512976__b24494913543">query</strong> column. This view depends on <strong id="EN-US_TOPIC_0000002057512976__b1145017925420">GS_WLM_SESSION_INFO</strong>. If the <strong id="EN-US_TOPIC_0000002057512976__b24511699544">GS_WLM_SESSION_INFO</strong> table is large, the query may take a long time.</p>
|
|
<p id="EN-US_TOPIC_0000002057512976__p17506487617">This system catalog is supported only by clusters of version 9.1.0.200 or later.</p>
|
|
<div class="notice" id="EN-US_TOPIC_0000002057512976__note8111103192419"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000002057512976__ul11300113462112"><li id="EN-US_TOPIC_0000002057512976__li680719559126">The schema of the <strong id="EN-US_TOPIC_0000002057512976__b7660185641214">GS_BLOCKLIST_SQL</strong> system catalog is <strong id="EN-US_TOPIC_0000002057512976__b1528615598124">dbms_om</strong>.</li><li id="EN-US_TOPIC_0000002057512976__li146110242195">The <strong id="EN-US_TOPIC_0000002057512976__b192676851318">GS_BLOCKLIST_SQL</strong> system catalog can be queried only in the <strong id="EN-US_TOPIC_0000002057512976__b853658154517">postgres</strong> database. If it is queried in other databases, an error is reported.</li><li id="EN-US_TOPIC_0000002057512976__li11179182184919">The <strong id="EN-US_TOPIC_0000002057512976__b13985932121315">GS_BLOCKLIST_SQL</strong> system catalog contains unique indexes, which are distributed on DNs in hash mode. The distributed column is <strong id="EN-US_TOPIC_0000002057512976__b13868172219131">sql_hash</strong>.</li><li id="EN-US_TOPIC_0000002057512976__li1693184305411">Generally, constant values are ignored during <strong id="EN-US_TOPIC_0000002057512976__b1258383105318">sql_hash</strong> calculation in DML statements. However, constant values cannot be ignored in DDL, DCL, and parameter setting statements. A <strong id="EN-US_TOPIC_0000002057512976__b121093898910112">sql_hash</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_0000002057512976__t73a6cdcc6f5f407295f7a10661f77795" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GS_BLOCKLIST_SQL columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000002057512976__ra23f56ada4d84851b753595c22721838"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.2.5.1.1"><p id="EN-US_TOPIC_0000002057512976__a6685836e60f04997906362bfd62f3a42"><strong id="EN-US_TOPIC_0000002057512976__b044316316554">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.2.5.1.2"><p id="EN-US_TOPIC_0000002057512976__ad16ba1201c9a4d72ade48d71c3788f58"><strong id="EN-US_TOPIC_0000002057512976__b718761014551">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.5.2.5.1.3"><p id="EN-US_TOPIC_0000002057512976__a9c975ac569864d5b80459f4bca046b96"><strong id="EN-US_TOPIC_0000002057512976__b54251611175514">Reference</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.5.2.5.1.4"><p id="EN-US_TOPIC_0000002057512976__a08e09097ed544fedbb34f3242c05c354"><strong id="EN-US_TOPIC_0000002057512976__b5518101245520">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002057512976__r91b8d572acb64edea74d520b11c61878"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0000002057512976__a7b89f3fbb5fb4b2f8903cd479643f43a">sql_hash</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0000002057512976__ae0734c9620564b87b7524ca4323c09c3">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0000002057512976__a5f2876def31447268b59a7f270d6e2cc">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0000002057512976__p74501851204017"><strong id="EN-US_TOPIC_0000002057512976__b1661213201873">sql_hash</strong> generated based on the query parsing tree.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002057512976__r27e7e2b516a24187979572cc46a0abfa"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0000002057512976__p943414315515">block_list</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0000002057512976__a3b783ea08458435085e3498675ef38b2">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0000002057512976__p96132274013">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0000002057512976__p34491451184016">Check whether a job is in the blocklist.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002057512976__r8967ebf498a743a7a5366f783afd31e8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0000002057512976__a68fcf5cd58db4b9ba2d9c8c201aedec8">except_num</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0000002057512976__p41281420115210">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0000002057512976__a4dc8f9fb8c6048788c439a59f61feab4">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0000002057512976__p344911511406">Query the number of job exceptions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002057512976__rfc403dd65527452fbcce8f5e27bfceb4"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.2.5.1.1 "><p id="EN-US_TOPIC_0000002057512976__a76aa1090abdc42668a06290e4dd2c556">except_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.2.5.1.2 "><p id="EN-US_TOPIC_0000002057512976__p131493363526">Timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.5.2.5.1.3 "><p id="EN-US_TOPIC_0000002057512976__p7761132494019">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.5.1.4 "><p id="EN-US_TOPIC_0000002057512976__p1344745184017">Query the time when the last job exception occurred.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</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>
|
|
|