全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

SHOW

最近更新时间:2024-11-26 12:01:00

显示运行时配置参数的值或所有运行时配置参数的值。


语法

SHOW <name>

SHOW ALL

描述

你可以使用 SHOW 检查通过 SET、编辑 postgresql.conf 配置文件或通过 PGOPTIONS 环境变量设置的运行时配置参数的当前设置。

你可以使用函数 current_setting()(参见 PostgreSQL 文档中的System Administration Functions了解详情)或系统视图 pg_setting 作为 SHOW 的替代方案。


参数

  • <name>

运行时配置参数的名称。

  • ALL

你可以运行 SHOW ALL 来显示所有运行时配置参数的值。


示例

显示参数 DateStyle 的当前设置:

SHOW DateStyle;
 DateStyle
-----------
 ISO, MDY
(1 row)

显示参数 row_security 的当前设置:

SHOW row_security;
 row_security
--------------
 on
(1 row)

显示所有参数的当前设置:

SHOW ALL;
       name       | setting |                  description
-----------------+---------+----------------------------------------------------
 application_name | psql    | Sets the application name to be reported in sta...

 ...

 xmlbinary        | base64  | Sets how binary values are to be encoded in XML.
 xmloption        | content | Sets whether XML data in implicit parsing and s...
(473 rows)

SQL 标准兼容性

SHOW 是 Relyt 的扩展。

纯净模式常规模式

纯净模式

点击可全屏预览文档内容