バージョンごとのドキュメント一覧

RESET

RESET <refpurpose>restore the value of a run-time parameter to the default value</refpurpose> — 実行時パラメータの値をデフォルト値に戻す

概要

RESET configuration_parameter
RESET ALL

説明

<title>Description</title>

<command>RESET</command> restores run-time parameters to their default values. <command>RESET</command> is an alternative spelling for RESETは実行時パラメータをデフォルト値に戻します。 RESETは下記に対する代替の記述方法です。

SET configuration_parameter TO DEFAULT

Refer to <xref linkend="sql-set"/> for details. 詳細はSETを参照してください。

The default value is defined as the value that the parameter would have had, if no <command>SET</command> 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 <quote>the value that the parameter had at session start</quote>, 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. デフォルト値とは、現行セッション内でSETコマンドが発行されなかった場合に変数が保持していた値として定義されます。 デフォルト値は、コンパイル時に指定したデフォルト、設定ファイル、コマンドラインオプション、データベースごと、ユーザごとのデフォルト設定などが元になります。 これはセッション起動時にそのパラメータが取る値という定義と若干異なります。 なぜなら、例えば設定ファイルを元にした値である場合、現在の設定ファイルによって指定される値に再設定されるからです。 詳細は第20章を参照してください。

The transactional behavior of <command>RESET</command> is the same as <command>SET</command>: its effects will be undone by transaction rollback. RESETのトランザクションでの振舞いはSETと同じです。 この効果は、トランザクションのロールバックによって取り消されます。

パラメータ

<title>Parameters</title>
configuration_parameter

Name of a settable run-time parameter. Available parameters are documented in <xref linkend="runtime-config"/> and on the <xref linkend="sql-set"/> reference page. 設定可能な実行時パラメータの名前です。 利用できるパラメータについては第20章で説明します。 また、SETマニュアルページを参照してください。

ALL

Resets all settable run-time parameters to default values. 設定可能な全ての実行時パラメータをデフォルト値に戻します。

<title>Examples</title>

Set the <varname>timezone</varname> configuration variable to its default value: timezone設定変数をデフォルト値に設定します。

RESET timezone;

互換性

<title>Compatibility</title>

<command>RESET</command> is a <productname>PostgreSQL</productname> extension. RESETPostgreSQLの拡張です。

関連項目

<title>See Also</title> SET, SHOW