reset.sgml 2.9 KB
Newer Older
1
<!--
P
Peter Eisentraut 已提交
2
$Header: /cvsroot/pgsql/doc/src/sgml/ref/reset.sgml,v 1.15 2002/09/21 18:32:54 petere Exp $
3
PostgreSQL documentation
4 5
-->

T
Thomas G. Lockhart 已提交
6 7
<refentry id="SQL-RESET">
 <refmeta>
8
  <refentrytitle id="SQL-RESET-TITLE">RESET</refentrytitle>
T
Thomas G. Lockhart 已提交
9 10 11
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 </refmeta>
 <refnamediv>
12
  <refname>RESET</refname>
13
  <refpurpose>restore the value of a run-time parameter to a default value</refpurpose>
T
Thomas G. Lockhart 已提交
14 15 16 17 18
 </refnamediv>
 <refsynopsisdiv>
  <synopsis>
RESET <replaceable class="PARAMETER">variable</replaceable>
  </synopsis>
19 20 21
  <synopsis>
RESET ALL
  </synopsis>
22

T
Thomas G. Lockhart 已提交
23
  <refsect2 id="R2-SQL-RESET-1">
24
   <title>Inputs</title>
T
Thomas G. Lockhart 已提交
25 26 27
   <para>		
    <variablelist>
     <varlistentry>
28
      <term><replaceable class="PARAMETER">variable</replaceable></term>
T
Thomas G. Lockhart 已提交
29 30
      <listitem>
       <para>
31
	The name of a run-time parameter. See <xref
32
	linkend="sql-set" endterm="sql-set-title"> for a list.
T
Thomas G. Lockhart 已提交
33 34 35
       </para>
      </listitem>
     </varlistentry>
36 37 38 39
     <varlistentry>
      <term>ALL</term>
      <listitem>
       <para>
40
        Resets all settable run-time parameters to default values.
41 42 43
       </para>
      </listitem>
     </varlistentry>
T
Thomas G. Lockhart 已提交
44 45 46
    </variablelist>
   </para>
  </refsect2>
47

T
Thomas G. Lockhart 已提交
48
 </refsynopsisdiv>
49
  
50 51
 <refsect1>
  <title>Description</title>
T
Thomas G. Lockhart 已提交
52
  <para>
53 54
   <command>RESET</command> restores run-time parameters to their
   default values. Refer to
55
   <xref linkend="sql-set" endterm="sql-set-title">
56
   for details. <command>RESET</command> is an alternate spelling for
57 58

   <synopsis>
59
SET <replaceable class="parameter">variable</replaceable> TO DEFAULT
60
   </synopsis>
61 62 63 64 65 66 67

   The default value is defined as the value that the variable would
   have had, had no <command>SET</> ever been issued for it in the
   current session.  The actual source of this value might be a
   compiled-in default, the postmaster's configuration file or command-line
   switches, or per-database or per-user default settings.  See the
   <citetitle>Administrator's Guide</citetitle> for details.
T
Thomas G. Lockhart 已提交
68
  </para>
69
 </refsect1>
70

71 72 73
 <refsect1>
  <title>Diagnostics</title>
  <para>
74
   See under the <xref linkend="sql-set"
75 76
   endterm="sql-set-title"> command.
  </para>
T
Thomas G. Lockhart 已提交
77
 </refsect1>
78 79 80

 <refsect1>
  <title>Examples</title>
T
Thomas G. Lockhart 已提交
81
  <para>
P
Peter Eisentraut 已提交
82
   Set <varname>DateStyle</> to its default value:
83

84
<screen>
T
Thomas G. Lockhart 已提交
85
RESET DateStyle;
86
</screen>
87 88 89
  </para>

  <para>
P
Peter Eisentraut 已提交
90
   Set <varname>geqo</> to its default value:
91

92
<screen>   
T
Thomas G. Lockhart 已提交
93
RESET GEQO;
94
</screen>
T
Thomas G. Lockhart 已提交
95 96 97
  </para>
 </refsect1>

98 99
 <refsect1>
  <title>Compatibility</title>
100

101
  <para>
102
   <command>RESET</command> is a <productname>PostgreSQL</productname> extension.
103
  </para>
T
Thomas G. Lockhart 已提交
104 105
 </refsect1>
</refentry>
106

T
Thomas G. Lockhart 已提交
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:nil
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->