Files
doc-exports/docs/dws/dev/dws_04_1246.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

74 lines
7.1 KiB
HTML

<a name="EN-US_TOPIC_0000002093751629"></a><a name="EN-US_TOPIC_0000002093751629"></a>
<h1 class="topictitle1">GS_BLOCKLIST_SQL</h1>
<div id="body0000002093751629"><p id="EN-US_TOPIC_0000002093751629__a1bc8317ebf214ab091f7d7d859a491e4"><strong id="EN-US_TOPIC_0000002093751629__b2976164118145">GS_BLOCKLIST_SQL</strong> is used to query job blocklist and exception information. This view is obtained by associating system catalogs <a href="dws_04_1245.html">GS_BLOCKLIST_SQL</a> and <a href="dws_04_0566.html">GS_WLM_SESSION_INFO</a>, and deduplicating query results. If the <strong id="EN-US_TOPIC_0000002093751629__b39785413144">GS_WLM_SESSION_INFO</strong> table is large, the query may take a long time.</p>
<p id="EN-US_TOPIC_0000002093751629__p17506487617">This view is supported only by 9.1.0.200 and later cluster versions.</p>
<div class="notice" id="EN-US_TOPIC_0000002093751629__note93322162411"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000002093751629__ul11300113462112"><li id="EN-US_TOPIC_0000002093751629__li18506173631814">The schema stored in the <strong id="EN-US_TOPIC_0000002093751629__b1743012324281">GS_BLOCKLIST_SQL</strong> view is <strong id="EN-US_TOPIC_0000002093751629__b153697429287">pg_catalog</strong>.</li><li id="EN-US_TOPIC_0000002093751629__li146110242195">The <strong id="EN-US_TOPIC_0000002093751629__b763735092818">GS_BLOCKLIST_SQL</strong> view can be queried only in the <strong id="EN-US_TOPIC_0000002093751629__b584624474712">postgres</strong> database. If it is queried in other databases, an error is reported.</li><li id="EN-US_TOPIC_0000002093751629__li1693184305411">Generally, constant values are ignored during <strong id="EN-US_TOPIC_0000002093751629__b19641456122015">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_0000002093751629__b870666172113">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_0000002093751629__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_0000002093751629__ra23f56ada4d84851b753595c22721838"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.5.1.1"><p id="EN-US_TOPIC_0000002093751629__a6685836e60f04997906362bfd62f3a42"><strong id="EN-US_TOPIC_0000002093751629__b104149036810388">Column</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.5.1.2"><p id="EN-US_TOPIC_0000002093751629__ad16ba1201c9a4d72ade48d71c3788f58"><strong id="EN-US_TOPIC_0000002093751629__b995312115172">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.4.2.5.1.3"><p id="EN-US_TOPIC_0000002093751629__a9c975ac569864d5b80459f4bca046b96"><strong id="EN-US_TOPIC_0000002093751629__b1790481231717">Reference</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.4.2.5.1.4"><p id="EN-US_TOPIC_0000002093751629__a08e09097ed544fedbb34f3242c05c354"><strong id="EN-US_TOPIC_0000002093751629__b747535281711">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002093751629__r91b8d572acb64edea74d520b11c61878"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002093751629__a7b89f3fbb5fb4b2f8903cd479643f43a">sql_hash</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002093751629__p176241515171919">Text</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002093751629__a5f2876def31447268b59a7f270d6e2cc">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002093751629__p74501851204017"><strong id="EN-US_TOPIC_0000002093751629__b69377223181">sql_hash</strong> generated based on the query parsing tree.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002093751629__r27e7e2b516a24187979572cc46a0abfa"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002093751629__p943414315515">block_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002093751629__a3b783ea08458435085e3498675ef38b2">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002093751629__p96132274013">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002093751629__p34491451184016">Whether a job is in the blocklist.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002093751629__r8967ebf498a743a7a5366f783afd31e8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002093751629__a68fcf5cd58db4b9ba2d9c8c201aedec8">except_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002093751629__p41281420115210">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002093751629__a4dc8f9fb8c6048788c439a59f61feab4">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002093751629__p344911511406">Number of job exceptions.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002093751629__rfc403dd65527452fbcce8f5e27bfceb4"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002093751629__a76aa1090abdc42668a06290e4dd2c556">except_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002093751629__p131493363526">Timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002093751629__p7761132494019">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002093751629__p1344745184017">Time when the last job exception occurred.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002093751629__row166911831181111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002093751629__p96911531111113">query</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002093751629__p1369120311112">Text</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002093751629__p5691193101115">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002093751629__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>