Files
doc-exports/docs/dws/dev/dws_04_0463.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

308 lines
26 KiB
HTML

<a name="EN-US_TOPIC_0000001764491792"></a><a name="EN-US_TOPIC_0000001764491792"></a>
<h1 class="topictitle1">Configuration Parameter Hints</h1>
<div id="body1608276293763"><div class="section" id="EN-US_TOPIC_0000001764491792__section6314183673614"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001764491792__p1890738133110">A hint, or a GUC hint, specifies a configuration parameter value when a plan is generated.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001764491792__section17392164662016"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0000001764491792__ul7392174616209"><li id="EN-US_TOPIC_0000001764491792__li193921846172018">If a parameter set by hint takes effect at the statement level, the hint must be written to the top-level query instead of the subquery. For <strong id="EN-US_TOPIC_0000001764491792__b1426113610367">UNION</strong>, <strong id="EN-US_TOPIC_0000001764491792__b12353163920361">INTERSECT</strong>, <strong id="EN-US_TOPIC_0000001764491792__b740210416369">EXCEPT</strong>, and <strong id="EN-US_TOPIC_0000001764491792__b9688543113616">MINUS</strong> statements, you can write the GUC hint at the statement level to any <strong id="EN-US_TOPIC_0000001764491792__b8209155319366">SELECT</strong> clause that participates in the set operation. The configuration parameters set by the GUC hint take effect on each <strong id="EN-US_TOPIC_0000001764491792__b57201510123710">SELECT</strong> clause that participates in the set operation.</li><li id="EN-US_TOPIC_0000001764491792__li73921446202019">When a subquery is pulled up, all GUC hints on the subquery are discarded.</li><li id="EN-US_TOPIC_0000001764491792__li53922463209">If a parameter is set by both the statement-level GUC hint and the subquery-level GUC hint, the subquery-level GUC hint takes effect in the corresponding subquery, and the statement-level GUC hint takes effect in other subqueries of the statement.</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001764491792__section16613144810377"><h4 class="sectiontitle">Syntax</h4><pre class="screen" id="EN-US_TOPIC_0000001764491792__screen186956873815">set [global]([@block_name] guc_name guc_value)</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000001764491792__section2332184743911"><h4 class="sectiontitle">Parameters</h4><ul id="EN-US_TOPIC_0000001764491792__ul721921684014"><li id="EN-US_TOPIC_0000001764491792__li169711246184711"><strong id="EN-US_TOPIC_0000001764491792__b7657141994918">global</strong> indicates that the parameter set by hint takes effect at the statement level. If <strong id="EN-US_TOPIC_0000001764491792__b266481984911">global</strong> is not specified, the parameter takes effect only in the subquery where the hint is located.</li><li id="EN-US_TOPIC_0000001764491792__li191281947175012"><em id="EN-US_TOPIC_0000001764491792__i13451211575">block_name</em> indicates the block name of the statement block. For details, see <a href="dws_04_0456.html#EN-US_TOPIC_0000002080515442__en-us_topic_0000001460722632_li99021444551">block_name</a>.</li><li id="EN-US_TOPIC_0000001764491792__li821910163408"><strong id="EN-US_TOPIC_0000001764491792__b725081172615">guc_name</strong> indicates the name of the configuration parameter specified by hint.</li></ul>
<ul id="EN-US_TOPIC_0000001764491792__ul99552335403"><li id="EN-US_TOPIC_0000001764491792__li1195543315403"><strong id="EN-US_TOPIC_0000001764491792__b68648332610">guc_value</strong> indicates the value of a configuration parameter specified by hint.</li></ul>
</div>
<p id="EN-US_TOPIC_0000001764491792__p15317337123314">Currently, GUC hints support only some configuration parameters. Some parameters cannot be configured at the subquery level and can only be configured at the statement level. The following table lists the supported parameters.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764491792__table9619938173819" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Configuration parameters supported by GUC hints</caption><thead align="left"><tr id="EN-US_TOPIC_0000001764491792__row19619163818387"><th align="left" class="cellrowborder" valign="top" width="52.21%" id="mcps1.3.6.2.3.1.1"><p id="EN-US_TOPIC_0000001764491792__p16619173823819">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="47.79%" id="mcps1.3.6.2.3.1.2"><p id="EN-US_TOPIC_0000001764491792__p461915388381">Configured at the Subquery Level (Yes/No)</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001764491792__row424911229255"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p625016223253">agg_max_mem</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p1325062232515">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row86192389384"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p16195382383">agg_redistribute_enhancement</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p1619338163814">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row1961933819387"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p10619238143816">best_agg_plan</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p186191938163817">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row2619133816388"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1619173811386">cost_model_version</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p18619143883813">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row461914389385"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p561913823820">cost_param</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p146192383388">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row1453517580191"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p105359581197">enable_array_optimization</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p25351158131919">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row661953816388"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p26191938123810">enable_bitmapscan</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p3619438163810">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row196191238153814"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1561993810384">enable_broadcast</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p196191938193810">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row1349278208"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p104027142016">enable_csqual_pushdown</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p12418271209">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row1978612497499"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p187860498492">enable_redistribute</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p178624904919">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row11619123815383"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p196191638163814">enable_extrapolation_stats</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p12619103873810">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row1161983816382"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1161993893812">enable_fast_query_shipping</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p2619193843817">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row7619153812382"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p9619153819388">enable_force_vector_engine</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p36192388388">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row19619203843819"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p361943819389">enable_hashagg</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p18619193817386">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row4396145611209"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p11396125602015">enable_hashfilter</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p17396155672015">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row16191338103818"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p9620143820386">enable_hashjoin</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p1562010384383">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row18620133813383"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p5620153823816">enable_index_nestloop</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p1062023833813">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row712516262211"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p6126112682111">enable_indexonlyscan</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p15126192692111">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row12620238103810"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1562033814382">enable_indexscan</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p86208383386">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row862063813815"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p166207381381">enable_join_pseudoconst</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p11620173893818">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row18122157182112"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p18123135717215">enable_mergejoin</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p181234570214">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row18961141211225"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p9962131242216">enable_mixedagg</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p1896211202218">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row106201638163812"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1562043816381">enable_nestloop</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p136201138193816">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row3620113817386"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p13620238143814">enable_nodegroup_debug</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p7620163853812">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row1962093863817"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p16620638193814">enable_partition_dynamic_pruning</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p106201938183816">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row11959143419221"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p5960134142210">enable_seqscan</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p139604348229">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row1694725782311"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p14947105782320">enable_sonic_hashagg</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p20947757132313">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row13643121082413"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p6643161012417">enable_sonic_hashjoin</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p20643121082412">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row106201538153815"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p76201938113818">enable_sort</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p5620143843815">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row784018449569"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p128404444562">enable_stream_ctescan</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p8840124415614">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row18765030102414"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p177656308249">enable_tidscan</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p18765153016241">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row0411357185519"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p741119578555">enable_value_redistribute</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p12411175717554">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row20620038113814"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p5620183823814">enable_vector_engine</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p10620123883817">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row11620183816381"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p762018388381">expected_computing_nodegroup</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p3620143819382">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row2620738183813"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p15620183812385">force_bitmapand</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p10620123814384">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row206201938203818"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p19620638193816">from_collapse_limit</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p17620103873818">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row1862023816386"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p106201638133815">join_collapse_limit</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p6620738103813">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row3620173811382"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p136206382388">join_num_distinct</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p762043816383">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row193521125122920"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p435332515299">outer_join_max_rows_multipler</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p1835322522917">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row6490122710163"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p849152741614">prefer_hashjoin_path</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p1491132716165">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row186206382385"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p462053811380">qrw_inlist2join_optmode</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p1162016387382">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row662073883817"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1262063813812">qual_num_distinct</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p7620103818383">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row2620938173816"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p14620203817387">query_dop</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p962023812382">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row127249543284"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p10724195418282">query_max_mem</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p20724125414286">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row9234185082817"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1023475019281">query_mem</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p42341150112810">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row2621173814389"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p362173873812">rewrite_rule</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p196211538143813">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row17351102252715"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1635102210272">setop_optmode</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p435114226270">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row56211738123814"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1562193814384">skew_option</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p462113811386">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row11806110182515"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1380610192515">stream_ctescan_max_estimate_mem</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p58066010258">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row93861272517"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p12383124255">stream_ctescan_pred_threshold</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p1638412162514">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row817814152515"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p1017181412257">stream_ctescan_refcount_threshold</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p181731413259">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row19712101552513"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p147121815112520">windowagg_pushdown_enhancement</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p771281532514">No</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row136892885011"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p96962885018">index_selectivity_cost</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p196914288506">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491792__row36913285509"><td class="cellrowborder" valign="top" width="52.21%" headers="mcps1.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001764491792__p15691228115018">index_cost_limit</p>
</td>
<td class="cellrowborder" valign="top" width="47.79%" headers="mcps1.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001764491792__p3696287503">Yes</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="EN-US_TOPIC_0000001764491792__section10533624154212"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001764491792__p24781341174213">Hint the query plan in <a href="dws_04_0455.html#EN-US_TOPIC_0000002053159594__en-us_topic_0000001658028034_section671421102912">Examples</a> as follows:</p>
<pre class="screen" id="EN-US_TOPIC_0000001764491792__screen1769012916445">explain
select /*+ set global(query_dop 0) */ i_product_name product_name
...</pre>
<p id="EN-US_TOPIC_0000001764491792__p67181253164414">This hint indicates that the <strong id="EN-US_TOPIC_0000001764491792__b1177215233263">query_dop</strong> parameter is set to <strong id="EN-US_TOPIC_0000001764491792__b13778142382611">0</strong> when the plan for a statement is generated, which means the SMP adaptation function is enabled. The generated plan is as follows:</p>
<p id="EN-US_TOPIC_0000001764491792__p58781332164513"><span><img id="EN-US_TOPIC_0000001764491792__image1287819329457" src="figure/en-us_image_0000001811610593.png"></span></p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0454.html">Hint-based Tuning</a></div>
</div>
</div>