doc-exports/docs/dws/dev/dws_04_1028.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
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>
2024-05-16 07:24:04 +00:00

50 lines
12 KiB
HTML

<a name="EN-US_TOPIC_0000001856158629"></a><a name="EN-US_TOPIC_0000001856158629"></a>
<h1 class="topictitle1">Hybrid Data Warehouse GUC Parameters</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_section192946226431"><h4 class="sectiontitle">autovacuum</h4><p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p12294142210437"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b3718585326">Parameter description</strong>: Specifies whether to start the automatic cleanup process (<strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b13719586325">autovacuum</strong>).</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p1029482214312"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b1614361133320">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p16294722154312"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b11973152133318">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_ul621525117437"><li id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_li321555117435"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b13919114123312">on</strong> indicates the database automatic cleanup process is enabled.</li><li id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_li10215125114313"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b1655179334">off</strong> indicates that the database automatic cleanup process is disabled.</li></ul>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p202951122164320"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b46431296339">Default value</strong>: <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b1864459113314">on</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_section4366198112115"><h4 class="sectiontitle">autovacuum_max_workers</h4><p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p23665812110"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b1928121233316">Parameter description</strong>: Specifies the maximum number of autovacuum worker threads that can run at the same time. The upper limit of this parameter is related to the values of <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b5291912193312">max_connections</strong> and <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b23051219337">job_queue_processes</strong>.</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p63674882117"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b1515812232339">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p1536718842114"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b1022142519336">Value range</strong>: an integer</p>
<ul id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_ul14959122443415"><li id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_li2252132813411">The minimum value is <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b11881192993316">0</strong>, indicating that autovacuum is not automatically performed.</li><li id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_li15221853183613">The theoretical maximum value is <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b4778134143314">262143</strong>, and the actual maximum value dynamically changes. Formula: 262143 - <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b986634310341">max_inner_tool_connections</strong> - <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b3559546143415">max_connections</strong> - <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b421024918341">job_queue_processes</strong> - <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b131528528341">auxiliary threads</strong> - <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b16151135963415">Number of autovacuum launcher threads</strong> - 1. The number of auxiliary threads and the number of autovacuum launcher threads are specified by two macros. Their default values in the current version are <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b9698104311355">20</strong> and <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b14470114516354">2</strong>, respectively.</li></ul>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p0583795373"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b158971614347">Default value</strong>: <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b19898206183412">3</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_section12149133813371"><h4 class="sectiontitle">autovacuum_max_workers_hstore</h4><p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p10150538193717"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b9830111193417">Parameter description</strong>: Specifies the maximum number of concurrent automatic cleanup threads used for hstore tables in <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b2621161963618">autovacuum_max_workers</strong>.</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p1815063833715"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b14419148346">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p61501838123717"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b15566181512344">Value range</strong>: an integer</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p915014381378"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b92928177340">Default value</strong>: <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b029311171346">0</strong></p>
<div class="note" id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_note715413610418"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p181164934111">To use HStore tables, set the following parameters, or the HStore performance will deteriorate severely. The recommended settings are as follows:</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p81178984113"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b1250165883614">autovacuum_max_workers_hstore=3, autovacuum_max_workers=6, autovacuum=true</strong></p>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_section1865114592412"><h4 class="sectiontitle">enable_hstore_lightupdate</h4><p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p17865154519246"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b7174937370">Parameter description</strong>: Specifies whether to enable lightweight UPDATE for an HStore table. (When an UPDATE operation is performed on an HStore table, the system automatically determines whether lightweight UPDATE is required.)</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p686514454243"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b13979113153711">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p78651145102410"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b0845121513377">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_ul12944474214"><li id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_li72941471225"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b18452172073713">on</strong> indicates that lightweight UPDATE is enabled for hstore tables.</li><li id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_li4294154717213"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b574843019376">off</strong> indicates that lightweight UPDATE is disabled for hstore tables.</li></ul>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p10865124552418"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b913513263716">Default value</strong>: <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b201361032133714">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_section18130651182419"><h4 class="sectiontitle">enable_hstore_merge_keepgtm</h4><p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p1613015192412"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b178219378371">Parameter description</strong>: Specifies whether the MERGE in the autovacuum operation on column-store and hstore tables occupies slots in the GTM.</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p313055182410"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b12841630124114">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p413035117243"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b52665323416">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_ul18409944927"><li id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_li1740912448213"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b185022038124118">true</strong> indicates that it occupies slots in the GTM.</li><li id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_li94091744723"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b2122175117411">false</strong> indicates that it does not occupy slots in the GTM.</li></ul>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p913095182418"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b15191208425">Default value</strong>: <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b17520908427">true</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_section1031113562424"><h4 class="sectiontitle">hstore_buffer_size</h4><p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p1131010562425"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b1979582751913">Parameter description</strong>: Specifies the number of HStore CU slots. The slots are used to store the update chain of each CU, which significantly improves the update and query efficiency.</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p123101956114211">To prevent excessive memory usage, the system calculates a slot value based on the memory size, compares the slot value with the value of this parameter, and uses the smaller value of the two.</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p1131095624220"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b183713121194">Type</strong>: POSTMASTER</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p63102056114216"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b19410101512194">Value range</strong>: an integer ranging from 100 to 10,000,000</p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p7310756184220"><strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b148351322121911">Default value</strong>: <strong id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_b118361622201917">100,000</strong></p>
<p id="EN-US_TOPIC_0000001856158629__en-us_topic_0000001440655546_p6311155613428"></p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_1023.html">Hybrid Data Warehouse</a></div>
</div>
</div>