RESET
restore the value of a run-time parameter to the default value
English manual coverage begins with PostgreSQL 6.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- anchor
- SQL-RESET
- file
- sql-reset.html
- lang
- en
- name
- RESET
- purpose
- restore the value of a run-time parameter to the default value
- purpose zh
- 将一个运行时参数的值恢复为默认值
- sections same as
- Unknown
- slug
- 18
- synopsis html
- RESET <em class="replaceable"><code>configuration_parameter</code></em> RESET ALL
- synopsis text
- RESET configuration_parameter RESET ALL
Syntax
RESET configuration_parameter
RESET ALLSyntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
RESET · Syntax 2
Definition PG 18
RESET configuration_parameter RESET ALL
Description
RESET restores run-time parameters to their default values. RESET is an alternative spelling for
SET configuration_parameter TO DEFAULT
Refer to SET for details.
The default value is defined as the value that the parameter would have had, if no SET had ever been issued for it in the current session. The actual source of this value might be a compiled-in default, the configuration file, command-line options, or per-database or per-user default settings. This is subtly different from defining it as “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 Chapter 19 for details.
The transactional behavior of RESET is the same as SET: its effects will be undone by transaction rollback.
Parameters
configuration_parameterName of a settable run-time parameter. Available parameters are documented in Chapter 19 and on the SET reference page.
ALLResets all settable run-time parameters to default values.
Examples
Set the timezone configuration variable to its default value:
RESET timezone;
Compatibility
RESET is a PostgreSQL extension.
See Also
SET, SHOWCompare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · wiki-repair-20261023:2f0ae6834077d84d49e2a1e20e69d4fce6b96b616dbf3794f20ed50238408b16
Text language: en · wiki-repair-20261023:2f0ae6834077d84d49e2a1e20e69d4fce6b96b616dbf3794f20ed50238408b16