Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
665c5e86
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
665c5e86
编写于
6月 27, 2006
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Default stats_command_string to 'on', now that its overhead is minimal.
上级
3c71244b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
20 deletion
+19
-20
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+2
-2
doc/src/sgml/monitoring.sgml
doc/src/sgml/monitoring.sgml
+14
-15
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+2
-2
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+1
-1
未找到文件。
doc/src/sgml/config.sgml
浏览文件 @
665c5e86
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.6
6 2006/06/19 01:51:21 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.6
7 2006/06/27 19:07:50 momjian
Exp $ -->
<chapter Id="runtime-config">
<title>Server Configuration</title>
...
...
@@ -2878,7 +2878,7 @@ SELECT * FROM parent WHERE key = 2400;
<para>
Enables the collection of information on the currently
executing command of each session, along with the time at
which that command began execution. This parameter is o
ff
by
which that command began execution. This parameter is o
n
by
default. Note that even when enabled, this information is not
visible to all users, only to superusers and the user owning
the session being reported on; so it should not represent a
...
...
doc/src/sgml/monitoring.sgml
浏览文件 @
665c5e86
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.3
4 2006/06/19 01:51:21 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.3
5 2006/06/27 19:07:50 momjian
Exp $ -->
<chapter id="monitoring">
<title>Monitoring Database Activity</title>
...
...
@@ -170,12 +170,11 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<note>
<para>
Since the parameters <varname>stats_command_string</varname>,
<varname>stats_block_level</varname>, and
Since the parameters <varname>stats_block_level</varname>, and
<varname>stats_row_level</varname> default to <literal>false</>,
very few statistics are collected in the default
configuration. Enabling
one or more
of these configuration
variables will significantly
enhanc
e the amount of useful data
configuration. Enabling
either
of these configuration
variables will significantly
increas
e the amount of useful data
produced by the statistics facilities, at the expense of
additional run-time overhead.
</para>
...
...
@@ -241,9 +240,9 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
process <acronym>ID</>, user OID, user name, current query, time at
which the current query began execution, time at which the process
was started, and client's address and port number. The columns
that report data on the current query are
only available if
the
that report data on the current query are
available unless
the
parameter <varname>stats_command_string</varname> has been
turned o
n. Furthermore, these columns read as null unless
the
turned o
ff. Furthermore, these columns are only visible if
the
user examining the view is a superuser or the same as the user
owning the process being reported on.
</entry>
...
...
@@ -635,10 +634,10 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<entry><literal><function>pg_stat_get_backend_activity</function>(<type>integer</type>)</literal></entry>
<entry><type>text</type></entry>
<entry>
Active command of the given server process
(null
if the
current user is
not a superuser n
or the same user as that of
the session being queried
, or
<varname>stats_command_string</varname> is
not
on)
Active command of the given server process
, but only
if the
current user is
a superuser
or the same user as that of
the session being queried
(and
<varname>stats_command_string</varname> is on)
</entry>
</row>
...
...
@@ -647,10 +646,10 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<entry><type>timestamp with time zone</type></entry>
<entry>
The time at which the given server process' currently
executing query was started
(null
if the
current user is
not a superuser n
or the same user as that of
the session being queried
, or
<varname>stats_command_string</varname> is
not
on)
executing query was started
, but only
if the
current user is
a superuser
or the same user as that of
the session being queried
(and
<varname>stats_command_string</varname> is on)
</entry>
</row>
...
...
src/backend/utils/misc/guc.c
浏览文件 @
665c5e86
...
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.32
2 2006/06/19 01:51:21 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.32
3 2006/06/27 19:07:50 momjian
Exp $
*
*--------------------------------------------------------------------
*/
...
...
@@ -725,7 +725,7 @@ static struct config_bool ConfigureNamesBool[] =
"at which that command began execution."
)
},
&
pgstat_collect_querystring
,
fals
e
,
NULL
,
NULL
tru
e
,
NULL
,
NULL
},
{
...
...
src/backend/utils/misc/postgresql.conf.sample
浏览文件 @
665c5e86
...
...
@@ -322,7 +322,7 @@
# - Query/Index Statistics Collector -
#stats_command_string = o
ff
#stats_command_string = o
n
#stats_start_collector = on # needed for block or row stats
#stats_block_level = off
#stats_row_level = off
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录