SHOW 中文man页面

系统
SHOW 将显示当前运行时参数的数值。 这些变量可以通过 SET 语句来设置,或者通过编辑 postgresql.conf, 或者通过 PGOPTIONS 环境变量,(在使用libpq或者以 libpq 为基础的应用的时候。) 或者在postmaster启动时用命令行参数来设置。 参阅 Section 16.4 ``Run-time Configuration'' 获取细节。

NAME

SHOW - 显示运行时参数的数值

SYNOPSIS

SHOW name
SHOW ALL

DESCRIPTION 描述

SHOW 将显示当前运行时参数的数值。 这些变量可以通过 SET 语句来设置,或者通过编辑 postgresql.conf, 或者通过 PGOPTIONS 环境变量,(在使用libpq或者以 libpq 为基础的应用的时候。) 或者在postmaster启动时用命令行参数来设置。 参阅 Section 16.4 ``Run-time Configuration'' 获取细节。  

PARAMETERS 参数

name

 运行时参数的名称。可用的参数在 Section 16.4 ``Run-time Configuration'' 里面有文档,以及 SET [set(7)] 手册页。 另外,还有几个参数可以显示,但是不能设置:
SERVER_VERSION

 显示服务器的版本号。
SERVER_ENCODING

 显示服务器断的字符集编码。目前,这个参数只能显示但不能设置, 因为编码是在创建数据库的时候决定的。
LC_COLLATE

 显示数据库的字符集区域设置(字符顺序)。目前,这个参数只能显示 但不能设置,因为设置是在 initdb 的时候设置的。
LC_CTYPE

 为字符集分类显示数据库的区域设置。目前,这个参数只能显示,不能设置, 因为它的设置是在 initdb 的时候决定的。
IS_SUPERUSER

 如果当前事务认证标识符有超级用户权限,则为真。
ALL

 显示所有当前会话参数。

NOTES


 函数 current_setting 生成相同输出。 参阅 Section 9.13 ``Miscellaneous Functions'' 。  

EXAMPLES 例子


 显示当前 DateStyle 的设置:

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


 显示参数geqo的当前设置:

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


 显示所有设置:

SHOW ALL;
             name              |                setting
-------------------------------+---------------------------------------
 australian_timezones          | off
 authentication_timeout        | 60
 checkpoint_segments           | 3
    .
    .
    .
 wal_debug                     | 0
 wal_sync_method               | fdatasync
(94 rows)

COMPATIBILITY 兼容性

SHOW 命令是 PostgreSQL 扩展。  

SEE ALSO

SET [set(7)]

#p#

NAME

SHOW - show the value of a run-time parameter

SYNOPSIS

SHOW name
SHOW ALL

DESCRIPTION

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 postmaster. See the section called ``Run-time Configuration'' in the documentation for details.  

PARAMETERS

name
The name of a run-time parameter. Available parameters are documented in the section called ``Run-time Configuration'' in the documentation and on the SET [set(7)] reference page. In addition, there are a few parameters that can be shown but not set:
SERVER_VERSION
Shows the server's version number.
SERVER_ENCODING
Shows the server-side character set encoding. At present, this parameter can be shown but not set, because the encoding is determined at database creation time.
LC_COLLATE
Shows the database's locale setting for collation (text ordering). At present, this parameter can be shown but not set, because the setting is determined at initdb time.
LC_CTYPE
Shows the database's locale setting for character classification. At present, this parameter can be shown but not set, because the setting is determined at initdb time.
IS_SUPERUSER
True if the current session authorization identifier has superuser privileges.
ALL
Show the values of all configurations parameters.

NOTES

The function current_setting produces equivalent output. See the section called ``Miscellaneous Functions'' in the documentation.  

EXAMPLES

Show the current setting of the parameter DateStyle:

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

Show the current setting of the parameter geqo:

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

Show all settings:

SHOW ALL;
             name              |                setting
-------------------------------+---------------------------------------
 australian_timezones          | off
 authentication_timeout        | 60
 checkpoint_segments           | 3
    .
    .
    .
 wal_debug                     | 0
 wal_sync_method               | fdatasync
(94 rows)

COMPATIBILITY

The SHOW command is a PostgreSQL extension.  

SEE ALSO

SET [set(7)]

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-11-01 13:46:50

中文mantac

2011-08-25 16:55:26

gets中文man

2011-08-25 15:49:02

freopen中文man

2011-08-25 16:00:56

fflush中文man

2011-08-25 16:08:55

fsetpos中文man

2011-08-25 15:33:18

exit中文man

2011-08-24 17:19:00

raw中文man

2011-08-25 10:55:37

services中文man

2011-08-25 09:35:26

units中文man

2011-08-24 13:57:35

DECLARE中文man

2011-08-11 15:28:43

ali中文man

2011-08-23 17:24:11

userdel中文man

2011-08-23 17:33:22

rdev中文man

2011-08-23 18:05:21

ABORT中文man

2011-08-18 19:15:25

group中文man

2011-08-23 10:17:54

bdflush中文man
点赞
收藏

51CTO技术栈公众号