SHOW — 显示一个运行时参数的值
SHOW name
SHOW ALL
SHOW将显示运行时参数的当前设置。
这些变量可以使用SET语句、编辑
postgresql.conf配置参数、通过
PGOPTIONS环境变量(使用
libpq或者基于libpq的应用时)
或者启动postgres服务器时通过命令行
标志设置。详见第 20 章。
函数current_setting产生等效的输出,见
第 9.27.1 节。还有,
pg_settings
系统事务产生同样的信息。
显示参数DateStyle的当前设置:
SHOW DateStyle; DateStyle ----------- ISO, MDY (1 row)
显示参数geqo的当前设置:
SHOW geqo; geqo ------ on (1 row)
显示所有设置:
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 行)
SHOW命令是一种
PostgreSQL扩展。