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-08-11 15:03:21

ACCESS中文man

2011-08-16 10:59:16

pwconv中文man

2011-08-18 19:02:43

environ中文man

2011-08-25 17:43:07

snprintf中文man

2011-08-19 18:30:52

ipc中文man

2011-08-24 15:35:52

hier中文man

2011-08-25 17:18:07

putc中文man

2011-08-15 13:53:19

stat中文man

2011-08-16 10:10:58

setup中文man

2011-08-25 15:24:31

execlp中文man

2011-08-25 18:24:12

termios中文man

2011-08-15 18:06:07

restore中文man

2011-08-24 17:26:35

reindex中文man

2011-08-25 16:55:26

gets中文man

2011-08-15 15:45:04

xpdf中文man

2011-08-24 17:06:42

NOTIFY中文man
点赞
收藏

51CTO技术栈公众号