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

SHOW

SHOW <refpurpose>show the value of a run-time parameter</refpurpose> — 実行時パラメータの値を表示する

概要

SHOW name
SHOW ALL

説明

<title>Description</title>

<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設定ファイルの編集、環境変数PGOPTIONSlibpqの使用時、あるいはlibpqを使用したアプリケーションの使用時)、または、postgresサーバの始動時のコマンドラインフラグで設定することができます。 詳細は第20章を参照してください。

パラメータ

<title>Parameters</title>
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: 実行時パラメータの名前です。 利用可能なパラメータは第20章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. サーバ側の文字セット符号化方式を表示します。 現時点では、符号化方式はデータベース作成時に決定されるため、このパラメータは表示のみ可能で、変更することができません。

LC_COLLATE

Shows the database's locale setting for collation (text ordering). At present, this parameter can be shown but not set, because the setting is determined at database creation time. 照合(テキストの順序付け)についてのデータベースのロケール設定を示します。 現時点では、この設定はデータベース作成時に決定されるため、このパラメータは表示のみ可能で、変更することができません。

LC_CTYPE

Shows the database's locale setting for character classification. At present, this parameter can be shown but not set, because the setting 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. 全ての設定パラメータの値とその説明を表示します。

注釈

<title>Notes</title>

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.27.1を参照してください。 また、pg_settingsシステムビューは同じ情報を生成します。

<title>Examples</title>

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)

互換性

<title>Compatibility</title>

The <command>SHOW</command> command is a <productname>PostgreSQL</productname> extension. SHOWコマンドはPostgreSQLの拡張です。

関連項目

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