reset.sgml 2.9 KB
Newer Older
1
<!--
2
$PostgreSQL: pgsql/doc/src/sgml/ref/reset.sgml,v 1.30 2006/04/25 14:56:04 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 54 55
   transaction behavior of <command>RESET</>.  <command>RESET
   CONNECTION</command> can be used to reset all aspects of
   a session, not just parameter values.
56
  </para>
57

58
 </refsect1>
59

60 61 62 63 64
 <refsect1>
  <title>Parameters</title>

  <variablelist>
   <varlistentry>
65
    <term><replaceable class="PARAMETER">configuration_parameter</replaceable></term>
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
    <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>
83
 </refsect1>
84

85 86
 <refsect1>
  <title>Examples</title>
87

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

96 97
 <refsect1>
  <title>Compatibility</title>
98

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

T
Thomas G. Lockhart 已提交
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
<!-- 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:
-->