reset.sgml 2.4 KB
Newer Older
1
<!--
2
$PostgreSQL: pgsql/doc/src/sgml/ref/reset.sgml,v 1.32 2006/09/16 00:30:19 momjian 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
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 </refmeta>
11

T
Thomas G. Lockhart 已提交
12
 <refnamediv>
13
  <refname>RESET</refname>
14
  <refpurpose>restore the value of a run-time parameter to the default value</refpurpose>
T
Thomas G. Lockhart 已提交
15
 </refnamediv>
16

P
Peter Eisentraut 已提交
17 18 19 20
 <indexterm zone="sql-reset">
  <primary>RESET</primary>
 </indexterm>

T
Thomas G. Lockhart 已提交
21
 <refsynopsisdiv>
22
<synopsis>
23
RESET <replaceable class="PARAMETER">configuration_parameter</replaceable>
24
RESET ALL
25
</synopsis>
T
Thomas G. Lockhart 已提交
26
 </refsynopsisdiv>
27
  
28 29
 <refsect1>
  <title>Description</title>
30

T
Thomas G. Lockhart 已提交
31
  <para>
32
   <command>RESET</command> restores run-time parameters to their
33 34 35
   default values.  <command>RESET</command> is an alternative
   spelling for
<synopsis>
36
SET <replaceable class="parameter">configuration_parameter</replaceable> TO DEFAULT
37 38 39 40
</synopsis>
   Refer to <xref linkend="sql-set" endterm="sql-set-title"> for
   details.
  </para>
41

42 43
  <para>
   The default value is defined as the value that the parameter would
44 45
   have had, had no <command>SET</> ever been issued for it in the
   current session.  The actual source of this value might be a
46 47 48
   compiled-in default, the configuration file, command-line options,
   or per-database or per-user default settings.  See <xref
   linkend="runtime-config"> for details.
T
Thomas G. Lockhart 已提交
49
  </para>
50 51

  <para>
52
   See the <command>SET</> reference page for details on the
53
   transaction behavior of <command>RESET</>.
54
  </para>
55
 </refsect1>
56

57 58 59 60 61
 <refsect1>
  <title>Parameters</title>

  <variablelist>
   <varlistentry>
62
    <term><replaceable class="PARAMETER">configuration_parameter</replaceable></term>
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
    <listitem>
     <para>
      The name of a run-time parameter. See <xref linkend="sql-set"
      endterm="sql-set-title"> for a list.
     </para>
    </listitem>
   </varlistentry>

   <varlistentry>
    <term><literal>ALL</literal></term>
    <listitem>
     <para>
      Resets all settable run-time parameters to default values.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
80
 </refsect1>
81

82 83
 <refsect1>
  <title>Examples</title>
84

85
  <para>
86
   Set the <varname>geqo</> configuration variable to its default value:
87 88
<screen>
RESET geqo;
89
</screen>
T
Thomas G. Lockhart 已提交
90 91 92
  </para>
 </refsect1>

93 94
 <refsect1>
  <title>Compatibility</title>
95

96
  <para>
97
   <command>RESET</command> is a <productname>PostgreSQL</productname> extension.
98
  </para>
T
Thomas G. Lockhart 已提交
99 100
 </refsect1>
</refentry>