SHOW 中文man頁面
NAME
SHOW - 顯示運行時參數的數值
SYNOPSIS
SHOW name SHOW ALL
DESCRIPTION 描述
SHOW 將顯示當前運行時參數的數值。 這些變量可以通過 SET 語句來設置,或者通過編輯 postgresql.conf, 或者通過 PGOPTIONS 環(huán)境變量,(在使用libpq或者以 libpq 為基礎的應用的時候。) 或者在postmaster啟動時用命令行參數來設置。 參閱 Section 16.4 ``Run-time Configuration'' 獲取細節(jié)。
PARAMETERS 參數
- name
運行時參數的名稱??捎玫膮翟?nbsp;Section 16.4 ``Run-time Configuration'' 里面有文檔,以及 SET [set(7)] 手冊頁。 另外,還有幾個參數可以顯示,但是不能設置:- SERVER_VERSION
顯示服務器的版本號。- SERVER_ENCODING
顯示服務器斷的字符集編碼。目前,這個參數只能顯示但不能設置, 因為編碼是在創(chuàng)建數據庫的時候決定的。- LC_COLLATE
顯示數據庫的字符集區(qū)域設置(字符順序)。目前,這個參數只能顯示 但不能設置,因為設置是在 initdb 的時候設置的。- LC_CTYPE
為字符集分類顯示數據庫的區(qū)域設置。目前,這個參數只能顯示,不能設置, 因為它的設置是在 initdb 的時候決定的。- IS_SUPERUSER
如果當前事務認證標識符有超級用戶權限,則為真。
- ALL
顯示所有當前會話參數。
NOTES
函數 current_setting 生成相同輸出。 參閱 Section 9.13 ``Miscellaneous Functions'' 。
EXAMPLES 例子
顯示當前 DateStyle 的設置:
SHOW DateStyle; DateStyle ----------- ISO, MDY (1 row)
顯示參數geqo的當前設置:
SHOW geqo; geqo ------ on (1 row)
顯示所有設置:
SHOW ALL; name | setting -------------------------------+--------------------------------------- australian_timezones | off authentication_timeout | 60 checkpoint_segments | 3 . . . wal_debug | 0 wal_sync_method | fdatasync (94 rows)
COMPATIBILITY 兼容性
SHOW 命令是 PostgreSQL 擴展。
SEE ALSO
SET [set(7)]
#p#
NAME
SHOW - show the value of a run-time parameter
SYNOPSIS
SHOW name SHOW ALL
DESCRIPTION
SHOW will display the current setting of run-time parameters. These variables can be set using the SET statement, by editing the postgresql.conf configuration file, through the PGOPTIONS environmental variable (when using libpq or a libpq-based application), or through command-line flags when starting the postmaster. See the section called ``Run-time Configuration'' in the documentation for details.
PARAMETERS
- name
- The name of a run-time parameter. Available parameters are documented in the section called ``Run-time Configuration'' in the documentation and on the SET [set(7)] reference page. In addition, there are a few parameters that can be shown but not 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 initdb 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 initdb time.
- IS_SUPERUSER
- True if the current session authorization identifier has superuser privileges.
- ALL
- Show the values of all configurations parameters.
NOTES
The function current_setting produces equivalent output. See the section called ``Miscellaneous Functions'' in the documentation.
EXAMPLES
Show the current setting of the parameter DateStyle:
SHOW DateStyle; DateStyle ----------- ISO, MDY (1 row)
Show the current setting of the parameter geqo:
SHOW geqo; geqo ------ on (1 row)
Show all settings:
SHOW ALL; name | setting -------------------------------+--------------------------------------- australian_timezones | off authentication_timeout | 60 checkpoint_segments | 3 . . . wal_debug | 0 wal_sync_method | fdatasync (94 rows)
COMPATIBILITY
The SHOW command is a PostgreSQL extension.
SEE ALSO
SET [set(7)]