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>
42 lines
5.0 KiB
HTML
42 lines
5.0 KiB
HTML
<a name="EN-US_TOPIC_0000001510162673"></a><a name="EN-US_TOPIC_0000001510162673"></a>
|
|
|
|
<h1 class="topictitle1">Viewing GUC Parameters</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001510162673__p27066116913"><span id="EN-US_TOPIC_0000001510162673__text1668617511863">GaussDB(DWS)</span> GUC parameters can control database system behaviors. You can check and adjust the GUC parameters based on your business scenario and data volume.</p>
|
|
<ul id="EN-US_TOPIC_0000001510162673__ul1923611215919"><li id="EN-US_TOPIC_0000001510162673__li72363211794">After a cluster is installed, you can check database parameters on the GaussDB(DWS) console.<p id="EN-US_TOPIC_0000001510162673__p77891829114716"><a name="EN-US_TOPIC_0000001510162673__li72363211794"></a><a name="li72363211794"></a><span><img id="EN-US_TOPIC_0000001510162673__image14475201713504" src="figure/en-us_image_0000001510283865.png" width="450.87" height="186.846646" title="Click to enlarge" class="imgResize"></span></p>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001510162673__ul2399518798"><li id="EN-US_TOPIC_0000001510162673__li539910189913">You can also connect to a cluster and run SQL commands to check the GUC parameters.<ul id="EN-US_TOPIC_0000001510162673__ul675265611105"><li id="EN-US_TOPIC_0000001510162673__li1475295619103">Run the <strong id="EN-US_TOPIC_0000001510162673__b859613943914">SHOW</strong> command.<div class="note" id="EN-US_TOPIC_0000001510162673__note4977184882913"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001510162673__p209771148142919">Method 2 is limited to querying GUC parameter values of CNs. To view GUC parameter values of DNs, you can utilize Method 1 on the management console.</p>
|
|
</div></div>
|
|
<div class="p" id="EN-US_TOPIC_0000001510162673__p33591310111117">To view a certain parameter, run the following command:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510162673__screen0752165614105"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SHOW</span><span class="w"> </span><span class="n">server_version</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001510162673__p57531956171013"><em id="EN-US_TOPIC_0000001510162673__i842352697104812">server_version</em> indicates the database version.</p>
|
|
<div class="p" id="EN-US_TOPIC_0000001510162673__p1647521561111">Run the following command to view values of all parameters:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510162673__screen2075315691015"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SHOW</span><span class="w"> </span><span class="k">ALL</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001510162673__ul275345614109"><li id="EN-US_TOPIC_0000001510162673__li127533563104">Use the <strong id="EN-US_TOPIC_0000001510162673__b126781610194210">pg_settings</strong> view.<div class="p" id="EN-US_TOPIC_0000001510162673__p9707121820116">To view a certain parameter, run the following command:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510162673__screen187532056171010"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_settings</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">NAME</span><span class="o">=</span><span class="s1">'server_version'</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="p" id="EN-US_TOPIC_0000001510162673__p7376192011110">Run the following command to view values of all parameters:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510162673__screen10754145612102"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_settings</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
</li></ul>
|
|
</li></ul>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0883.html">GUC Parameters of the GaussDB(DWS) Database</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |