SHOW 中文man頁面
NAME
SHOW - 顯示運(yùn)行時(shí)參數(shù)的數(shù)值
SYNOPSIS
SHOW name SHOW ALL
DESCRIPTION 描述
SHOW 將顯示當(dāng)前運(yùn)行時(shí)參數(shù)的數(shù)值。 這些變量可以通過 SET 語句來設(shè)置,或者通過編輯 postgresql.conf, 或者通過 PGOPTIONS 環(huán)境變量,(在使用libpq或者以 libpq 為基礎(chǔ)的應(yīng)用的時(shí)候。) 或者在postmaster啟動(dòng)時(shí)用命令行參數(shù)來設(shè)置。 參閱 Section 16.4 ``Run-time Configuration'' 獲取細(xì)節(jié)。
PARAMETERS 參數(shù)
- name
運(yùn)行時(shí)參數(shù)的名稱??捎玫膮?shù)在 Section 16.4 ``Run-time Configuration'' 里面有文檔,以及 SET [set(7)] 手冊頁。 另外,還有幾個(gè)參數(shù)可以顯示,但是不能設(shè)置:- SERVER_VERSION
顯示服務(wù)器的版本號(hào)。- SERVER_ENCODING
顯示服務(wù)器斷的字符集編碼。目前,這個(gè)參數(shù)只能顯示但不能設(shè)置, 因?yàn)榫幋a是在創(chuàng)建數(shù)據(jù)庫的時(shí)候決定的。- LC_COLLATE
顯示數(shù)據(jù)庫的字符集區(qū)域設(shè)置(字符順序)。目前,這個(gè)參數(shù)只能顯示 但不能設(shè)置,因?yàn)樵O(shè)置是在 initdb 的時(shí)候設(shè)置的。- LC_CTYPE
為字符集分類顯示數(shù)據(jù)庫的區(qū)域設(shè)置。目前,這個(gè)參數(shù)只能顯示,不能設(shè)置, 因?yàn)樗脑O(shè)置是在 initdb 的時(shí)候決定的。- IS_SUPERUSER
如果當(dāng)前事務(wù)認(rèn)證標(biāo)識(shí)符有超級(jí)用戶權(quán)限,則為真。
- ALL
顯示所有當(dāng)前會(huì)話參數(shù)。
NOTES
函數(shù) current_setting 生成相同輸出。 參閱 Section 9.13 ``Miscellaneous Functions'' 。
EXAMPLES 例子
顯示當(dāng)前 DateStyle 的設(shè)置:
SHOW DateStyle; DateStyle ----------- ISO, MDY (1 row)
顯示參數(shù)geqo的當(dāng)前設(shè)置:
SHOW geqo; geqo ------ on (1 row)
顯示所有設(shè)置:
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 擴(kuò)展。
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)]