NAME
RESET - 把一个运行时参数值恢复为缺省值
SYNOPSIS
RESET name RESET ALL
DESCRIPTION 描述
RESET 将运行时参数恢复为缺省值。 RESET 是下面语句的一个变种
SET parameter TO DEFAULT
请参考 SET [set(7)] 命令令获取允许的变量值和缺省值的详细信息。
缺省值是定义成变量可以拥有的数值,并且在当前会话中没有用 SET 设置过。这个数值的实际源头可能是编译的缺省, postmaster 的配置文件,或者是命令行开关,或者是每数据库或每用户的缺省设置。 参阅 Section 16.4``Run-time Configuration'' 获取细节。
参阅 SET 手册页获取有关RESET 的事务行为的细节。
PARAMETERS 参数
- name
请参考 SET [set(7)] 语句获取有关可用的参数的详细说明。- ALL
把所有运行时参数设置为缺省值。
EXAMPLES 例子
把 datestyle 重新设为缺省值:
RESET datestyle;
把 geqo 重新设为缺省值:
RESET geqo;
COMPATIBILITY 兼容性
RESET 是 PostgreSQL 扩展。
#p#
NAME
RESET - restore the value of a run-time parameter to the default value
SYNOPSIS
RESET name RESET ALL
DESCRIPTION
RESET restores run-time parameters to their default values. RESET is an alternative spelling for
SET parameter TO DEFAULT
Refer to SET [set(7)] for details.
The default value is defined as the value that the parameter would have had, had no SET 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. See the section called ``Run-time Configuration'' in the documentation for details.
See the SET reference page for details on the transaction behavior of RESET.
PARAMETERS
- name
- The name of a run-time parameter. See SET [set(7)] for a list.
- ALL
- Resets all settable run-time parameters to default values.
EXAMPLES
Set DATESTYLE to its default value:
RESET datestyle;
Set GEQO to its default value:
RESET geqo;
COMPATIBILITY
RESET is a PostgreSQL extension.