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>
43 lines
6.3 KiB
HTML
43 lines
6.3 KiB
HTML
<a name="EN-US_TOPIC_0000001188429092"></a><a name="EN-US_TOPIC_0000001188429092"></a>
|
|
|
|
<h1 class="topictitle1">RESET</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188429092__sd068e96931524ede952a83846ef651cd"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001188429092__a261c9349b26e45169878382d8327444d"><strong id="EN-US_TOPIC_0000001188429092__b781526811031">RESET</strong> restores run-time parameters to their default values. The default values are parameter default values complied in the <strong id="EN-US_TOPIC_0000001188429092__b322855311031">postgresql.conf</strong> configuration file.</p>
|
|
<p id="EN-US_TOPIC_0000001188429092__aa7bb706adcb843099c2c88d6fad0ab08"><strong id="EN-US_TOPIC_0000001188429092__b6018626411031">RESET</strong> is an alternative spelling for:</p>
|
|
<p id="EN-US_TOPIC_0000001188429092__aa47f055ab1be4effbda56ac97a5fefb3"><strong id="EN-US_TOPIC_0000001188429092__b8423527069553">SET configuration_parameter TO DEFAULT</strong></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429092__s8cec26a7a180402895a81bd52bd837c9"><h4 class="sectiontitle">Precautions</h4><p id="EN-US_TOPIC_0000001188429092__a9180587919e74b95818705cff86107f3"><strong id="EN-US_TOPIC_0000001188429092__b842352706153544">RESET</strong> and <strong id="EN-US_TOPIC_0000001188429092__b842352706153547">SET</strong> have the same transaction behavior. Their impact will be rolled back.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429092__s994be4ca28254d32a2c466aa632c83ef"><h4 class="sectiontitle">Syntax</h4><pre class="screen" id="EN-US_TOPIC_0000001188429092__sc255aed950fd4a33bac5a5a00eb40b53">RESET {configuration_parameter | CURRENT_SCHEMA | TIME ZONE | TRANSACTION ISOLATION LEVEL | SESSION AUTHORIZATION | ALL };</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429092__se65334e5a0844cf2926813c622b3fc24"><a name="EN-US_TOPIC_0000001188429092__se65334e5a0844cf2926813c622b3fc24"></a><a name="se65334e5a0844cf2926813c622b3fc24"></a><h4 class="sectiontitle">Parameter Description</h4><ul id="EN-US_TOPIC_0000001188429092__uf07ffd7659ae439e9ffb262842afb065"><li id="EN-US_TOPIC_0000001188429092__lf271dd3d47ca4fb482c4e8a375ae9d6f"><strong id="EN-US_TOPIC_0000001188429092__acc9766ac76f6434faeb1f31e90f5f907">configuration_parameter</strong><p id="EN-US_TOPIC_0000001188429092__a17b0d2ed517e4a5e83b0dc3b20353613">Specifies the name of a settable run-time parameter.</p>
|
|
<p id="EN-US_TOPIC_0000001188429092__a10d38996c1d9433fb0a377264b30eaad">Value range: Run-time parameters. You can view them by running the <strong id="EN-US_TOPIC_0000001188429092__b717002511219">SHOW ALL</strong> command.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188429092__n692a33ab370f452cb7053caebfab6619"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188429092__a824ca9a78e8e4ccea141d33cfe8a7ad5">Some parameters that viewed by <strong id="EN-US_TOPIC_0000001188429092__b9614895181550">SHOW ALL</strong> cannot be set by <strong id="EN-US_TOPIC_0000001188429092__b19425192181550">SET</strong>. For example, <strong id="EN-US_TOPIC_0000001188429092__b18180096233550">max_datanodes</strong>.</p>
|
|
</div></div>
|
|
</li><li id="EN-US_TOPIC_0000001188429092__ld2cce3fd517c42a1b22ccf3d9e2b3fe3"><strong id="EN-US_TOPIC_0000001188429092__a592d5d2578ea4d47a3ef7dffb676afa1">CURRENT_SCHEMA</strong><p id="EN-US_TOPIC_0000001188429092__a008164e8e86942b8acb648a925d8cf6d">Specifies the current schema.</p>
|
|
</li><li id="EN-US_TOPIC_0000001188429092__l13e8159d740a43c5b988f941d00cdf2d"><strong id="EN-US_TOPIC_0000001188429092__abb8c839ac71d49e5b2a1903bee67a72a">TIME ZONE</strong><p id="EN-US_TOPIC_0000001188429092__a351630f295564a89aef4d1a4c3313231">Specifies the time zone.</p>
|
|
</li><li id="EN-US_TOPIC_0000001188429092__lfe6eebd9e4084cc9b6baaf7121169e70"><strong id="EN-US_TOPIC_0000001188429092__abbc6fcd50f7e4952a81958c17020bb8b">TRANSACTION ISOLATION LEVEL</strong><p id="EN-US_TOPIC_0000001188429092__a00d45cf7bf9c488c8c8b16cce6083199">Specifies the transaction isolation level.</p>
|
|
</li><li id="EN-US_TOPIC_0000001188429092__l60883e08e51d4a1a978f76cc6a8953fb"><strong id="EN-US_TOPIC_0000001188429092__ae4e0deb3e822413a9cbe41d5ba051cb3">SESSION AUTHORIZATION</strong><p id="EN-US_TOPIC_0000001188429092__ae45cdd7da25949e68726a89aeea60f1d">Specifies the session authorization.</p>
|
|
</li><li id="EN-US_TOPIC_0000001188429092__l84faa6b1f6744ada90b282036661e4c1"><strong id="EN-US_TOPIC_0000001188429092__a47289fc6db894e5db1a6f8f00263ab51">ALL</strong><p id="EN-US_TOPIC_0000001188429092__a3907eb247d4e4540a04e9354016e6f72">Resets all settable run-time parameters to default values.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429092__s0f66bcf350474eac9714fb807bbe5c51"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001188429092__p146735378019">Reset <strong id="EN-US_TOPIC_0000001188429092__b115285239233550">timezone</strong> to the default value:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188429092__screen156514231731"><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">RESET</span><span class="w"> </span><span class="n">timezone</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188429092__p136739371001">Set all parameters to their default values:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188429092__screen177691518635"><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">RESET</span><span class="w"> </span><span class="k">ALL</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429092__s8db2d834a4674246aa1243c296db7bba"><h4 class="sectiontitle">Helpful Links</h4><p id="EN-US_TOPIC_0000001188429092__a72f18fb8d90a4953a9bb90b848ddf370"><a href="dws_06_0220.html">SET</a>, <a href="dws_06_0224.html">SHOW</a></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0118.html">DDL Syntax</a></div>
|
|
</div>
|
|
</div>
|
|
|