SHOW

SHOW —显示运行时参数的值

Synopsis

SHOW name
SHOW ALL

Description

SHOW将显示运行时参数的当前设置。可以使用SET语句,通过编辑postgresql.conf配置文件,通过PGOPTIONS环境变量(使用 libpq 或基于 libpq 的应用程序时)或启动postgres服务器时通过命令行标志来设置这些变量。有关详情,请参见Chapter 19

Parameters

Notes

函数current_setting产生等效的输出;参见Section 9.26。同样,pg_settings系统视图会产生相同的信息。

Examples

显示参数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)

Compatibility

SHOW命令是 PostgreSQL 扩展。

See Also

SET, RESET

上一章 首页 下一章