1999-07-22 17:09:15 +02:00
|
|
|
<!--
|
2010-09-20 22:08:53 +02:00
|
|
|
doc/src/sgml/ref/reset.sgml
|
2001-12-08 04:24:40 +01:00
|
|
|
PostgreSQL documentation
|
1999-07-22 17:09:15 +02:00
|
|
|
-->
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refentry id="SQL-RESET">
|
2014-02-24 03:25:35 +01:00
|
|
|
<indexterm zone="sql-reset">
|
|
|
|
<primary>RESET</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refmeta>
|
2010-04-03 09:23:02 +02:00
|
|
|
<refentrytitle>RESET</refentrytitle>
|
2008-11-14 11:22:48 +01:00
|
|
|
<manvolnum>7</manvolnum>
|
1999-06-14 09:37:05 +02:00
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refnamediv>
|
2000-06-18 23:24:54 +02:00
|
|
|
<refname>RESET</refname>
|
2006-04-25 16:11:59 +02:00
|
|
|
<refpurpose>restore the value of a run-time parameter to the default value</refpurpose>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refnamediv>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsynopsisdiv>
|
2003-05-04 04:23:16 +02:00
|
|
|
<synopsis>
|
2006-04-25 16:56:04 +02:00
|
|
|
RESET <replaceable class="PARAMETER">configuration_parameter</replaceable>
|
2001-06-07 06:50:57 +02:00
|
|
|
RESET ALL
|
2003-05-04 04:23:16 +02:00
|
|
|
</synopsis>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refsynopsisdiv>
|
2007-04-12 08:53:49 +02:00
|
|
|
|
2000-06-18 23:24:54 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<para>
|
2000-06-18 23:24:54 +02:00
|
|
|
<command>RESET</command> restores run-time parameters to their
|
2003-05-04 04:23:16 +02:00
|
|
|
default values. <command>RESET</command> is an alternative
|
|
|
|
spelling for
|
|
|
|
<synopsis>
|
2006-04-25 16:56:04 +02:00
|
|
|
SET <replaceable class="parameter">configuration_parameter</replaceable> TO DEFAULT
|
2003-05-04 04:23:16 +02:00
|
|
|
</synopsis>
|
2010-04-03 09:23:02 +02:00
|
|
|
Refer to <xref linkend="sql-set"> for
|
2003-05-04 04:23:16 +02:00
|
|
|
details.
|
|
|
|
</para>
|
2002-05-17 03:19:19 +02:00
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<para>
|
|
|
|
The default value is defined as the value that the parameter would
|
2007-04-13 00:34:45 +02:00
|
|
|
have had, if no <command>SET</> had ever been issued for it in the
|
2002-05-17 03:19:19 +02:00
|
|
|
current session. The actual source of this value might be a
|
2003-05-04 04:23:16 +02:00
|
|
|
compiled-in default, the configuration file, command-line options,
|
2007-09-11 02:06:42 +02:00
|
|
|
or per-database or per-user default settings. This is subtly different
|
|
|
|
from defining it as <quote>the value that the parameter had at session
|
|
|
|
start</>, because if the value came from the configuration file, it
|
|
|
|
will be reset to whatever is specified by the configuration file now.
|
|
|
|
See <xref linkend="runtime-config"> for details.
|
1999-06-14 09:37:05 +02:00
|
|
|
</para>
|
2002-10-09 06:59:38 +02:00
|
|
|
|
|
|
|
<para>
|
2007-09-11 02:06:42 +02:00
|
|
|
The transactional behavior of <command>RESET</> is the same as
|
|
|
|
<command>SET</>: its effects will be undone by transaction rollback.
|
2002-10-09 06:59:38 +02:00
|
|
|
</para>
|
2003-05-04 04:23:16 +02:00
|
|
|
</refsect1>
|
2002-10-09 06:59:38 +02:00
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Parameters</title>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2006-04-25 16:56:04 +02:00
|
|
|
<term><replaceable class="PARAMETER">configuration_parameter</replaceable></term>
|
2003-05-04 04:23:16 +02:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2007-09-11 02:06:42 +02:00
|
|
|
Name of a settable run-time parameter. Available parameters are
|
|
|
|
documented in <xref linkend="runtime-config"> and on the
|
2010-04-03 09:23:02 +02:00
|
|
|
<xref linkend="sql-set"> reference page.
|
2003-05-04 04:23:16 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>ALL</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Resets all settable run-time parameters to default values.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2000-06-18 23:24:54 +02:00
|
|
|
</refsect1>
|
1998-12-29 03:24:47 +01:00
|
|
|
|
2000-06-18 23:24:54 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Examples</title>
|
1999-07-06 19:16:42 +02:00
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<para>
|
2007-09-11 02:06:42 +02:00
|
|
|
Set the <varname>timezone</> configuration variable to its default value:
|
2003-05-04 04:23:16 +02:00
|
|
|
<screen>
|
2007-09-11 02:06:42 +02:00
|
|
|
RESET timezone;
|
2011-08-07 09:49:45 +02:00
|
|
|
</screen></para>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refsect1>
|
|
|
|
|
2000-06-18 23:24:54 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Compatibility</title>
|
1998-12-29 03:24:47 +01:00
|
|
|
|
2000-06-18 23:24:54 +02:00
|
|
|
<para>
|
2001-12-08 04:24:40 +01:00
|
|
|
<command>RESET</command> is a <productname>PostgreSQL</productname> extension.
|
2000-06-18 23:24:54 +02:00
|
|
|
</para>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refsect1>
|
2007-09-11 02:06:42 +02:00
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See Also</title>
|
|
|
|
|
|
|
|
<simplelist type="inline">
|
2010-04-03 09:23:02 +02:00
|
|
|
<member><xref linkend="SQL-SET"></member>
|
|
|
|
<member><xref linkend="SQL-SHOW"></member>
|
2007-09-11 02:06:42 +02:00
|
|
|
</simplelist>
|
|
|
|
</refsect1>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refentry>
|