?
Dokumen ini menggunakan Manual laman web PHP Cina Lepaskan
SHOW name SHOW ALL
SHOW將顯示當前運行時參數(shù)的數(shù)值。這些變量可以通過SET語句、編輯postgresql.conf文件、PGOPTIONS環(huán)境變量(在使用基于libpq的應(yīng)用程序的時候)、啟動postgres的命令行參數(shù)來設(shè)置。參閱章Chapter 18獲取細節(jié)。 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 postgres server. See Chapter 18 for details.
運行時參數(shù)的名稱。可用參數(shù)記錄子在Chapter 18中并且在 SET參考頁。除此之外,有幾個可以顯示但不能設(shè)置的參數(shù):
顯示服務(wù)器的版本號
顯示服務(wù)器端的字符集編碼。目前,這個參數(shù)只能顯示但不能設(shè)置,因為編碼是在創(chuàng)建數(shù)據(jù)庫的時候決定的。
顯示數(shù)據(jù)庫的局部環(huán)境設(shè)置來排序(文本序列)。目前,該參數(shù)可以顯示 但不能設(shè)置,因為該設(shè)置是在數(shù)據(jù)庫創(chuàng)建時設(shè)定的。
顯示數(shù)據(jù)庫的局部環(huán)境設(shè)置來字符分類(文本序列)。目前,該參數(shù)可以顯示 但不能設(shè)置,因為該設(shè)置是在數(shù)據(jù)庫創(chuàng)建時設(shè)定的。
如果當前角色擁有超級用戶特權(quán)則為真。
顯示所有配置參數(shù)參數(shù)以及其描述
函數(shù)current_setting
產(chǎn)生等量輸出;請參閱Section 9.24。
另外,pg_settings系統(tǒng)視圖
產(chǎn)生相同的信息。
顯示當前DateStyle設(shè)置:
SHOW DateStyle; DateStyle ----------- ISO, MDY (1 row)
顯示參數(shù)geqo的當前設(shè)置:
SHOW geqo; geqo ------ on (1 row)
顯示所有設(shè)置:
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)
SHOW命令是PostgreSQL擴展。