SHOW — 显示运行时参数的值
SHOW name
SHOW ALL
SHOW将显示运行时参数的当前设置。
这些变量可以使用SET语句、编辑
postgresql.conf配置文件、通过
PGOPTIONS环境变量(使用
libpq或基于libpq的
应用时),或者启动postgres服务器时通过命令行
标志设置。详见第 19 章。
函数current_setting产生等效的输出,见
第 9.28.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 rows)
SHOW命令是一种
PostgreSQL扩展。