SHOW <refpurpose>show the value of a run-time parameter</refpurpose> — 実行時パラメータの値を表示する
SHOW name
SHOW ALL
<command>SHOW</command> will display the current setting of
run-time parameters. These variables can be set using the
<command>SET</command> statement, by editing the
<filename>postgresql.conf</filename> configuration file, through
the <envar>PGOPTIONS</envar> environmental variable (when using
<application>libpq</application> or a <application>libpq</application>-based
application), or through command-line flags when starting the
<command>postgres</command> server. See <xref
linkend="runtime-config"/> for details.
SHOW
は、実行時パラメータの現在の設定を表示します。
これらの変数は、SET
文、postgresql.conf
設定ファイルの編集、環境変数PGOPTIONS
(libpqの使用時、あるいはlibpqを使用したアプリケーションの使用時)、または、postgres
サーバの始動時のコマンドラインフラグで設定することができます。
詳細は第19章を参照してください。
name
The name of a run-time parameter. Available parameters are documented in <xref linkend="runtime-config"/> and on the <xref linkend="sql-set"/> reference page. In addition, there are a few parameters that can be shown but not set: 実行時パラメータの名前です。 利用可能なパラメータは第19章とSETリファレンスページに記載されています。 さらに、表示のみ可能で、変更できない次のようなパラメータがあります。
SERVER_VERSION
Shows the server's version number. サーバのバージョン番号を示します。
SERVER_ENCODING
Shows the server-side character set encoding. At present, this parameter can be shown but not set, because the encoding is determined at database creation time. サーバ側の文字セット符号化方式を表示します。 現時点では、符号化方式はデータベース作成時に決定されるため、このパラメータは表示のみ可能で、変更することができません。
IS_SUPERUSER
True if the current role has superuser privileges. 現在のロールがスーパーユーザ権限を持つ場合は真になります。
ALL
Show the values of all configuration parameters, with descriptions. 全ての設定パラメータの値とその説明を表示します。
The function <function>current_setting</function> produces
equivalent output; see <xref linkend="functions-admin-set"/>.
Also, the
<link linkend="view-pg-settings"><structname>pg_settings</structname></link>
system view produces the same information.
関数current_setting
は同等の出力を生成します。
9.28.1を参照してください。
また、pg_settings
システムビューは同じ情報を生成します。
Show the current setting of the parameter <varname>DateStyle</varname>:
パラメータDateStyle
の現在の設定を表示します。
SHOW DateStyle; DateStyle ----------- ISO, MDY (1 row)
Show the current setting of the parameter <varname>geqo</varname>:
パラメータgeqo
の現在の設定を表示します。
SHOW geqo; geqo ------ on (1 row)
Show all settings: 全設定を表示します。
SHOW ALL; name | setting | description -------------------------+---------+------------------------------------------------- allow_system_table_mods | off | Allows modifications of the structure of ... . . . xmloption | content | Sets whether XML data in implicit parsing ... zero_damaged_pages | off | Continues processing past damaged page headers. (196 rows)
The <command>SHOW</command> command is a
<productname>PostgreSQL</productname> extension.
SHOW
コマンドはPostgreSQLの拡張です。