Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
ba9f9bf1
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,发现更多精彩内容 >>
提交
ba9f9bf1
编写于
8月 29, 2006
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert change to turn autovacuum on by default.
上级
f443258d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
29 deletion
+26
-29
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+7
-8
doc/src/sgml/maintenance.sgml
doc/src/sgml/maintenance.sgml
+4
-6
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+8
-8
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+7
-7
未找到文件。
doc/src/sgml/config.sgml
浏览文件 @
ba9f9bf1
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.7
7 2006/08/29 02:11:29 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.7
8 2006/08/29 11:37:47 petere
Exp $ -->
<chapter Id="runtime-config">
<title>Server Configuration</title>
...
...
@@ -383,7 +383,7 @@ SET ENABLE_SEQSCAN TO OFF;
</para>
<para>
The default value is
3
. The value must be less than the value of
The default value is
2
. The value must be less than the value of
<varname>max_connections</varname>. This parameter can only be
set at server start.
</para>
...
...
@@ -2990,8 +2990,7 @@ SELECT * FROM parent WHERE key = 2400;
<listitem>
<para>
Enables the collection of row-level statistics on database
activity. This parameter is on by default, because the autovacuum
daemon needs the collected information.
activity. This parameter is off by default.
Only superusers can change this setting.
</para>
</listitem>
...
...
@@ -3114,7 +3113,7 @@ SELECT * FROM parent WHERE key = 2400;
<para>
Specifies the minimum number of updated or deleted tuples needed
to trigger a <command>VACUUM</> in any one table.
The default is
5
00.
The default is
10
00.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
This setting can be overridden for individual tables by entries in
...
...
@@ -3132,7 +3131,7 @@ SELECT * FROM parent WHERE key = 2400;
<para>
Specifies the minimum number of inserted, updated or deleted tuples
needed to trigger an <command>ANALYZE</> in any one table.
The default is
25
0.
The default is
50
0.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
This setting can be overridden for individual tables by entries in
...
...
@@ -3151,7 +3150,7 @@ SELECT * FROM parent WHERE key = 2400;
Specifies a fraction of the table size to add to
<varname>autovacuum_vacuum_threshold</varname>
when deciding whether to trigger a <command>VACUUM</>.
The default is 0.
2
.
The default is 0.
4
.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
This setting can be overridden for individual tables by entries in
...
...
@@ -3170,7 +3169,7 @@ SELECT * FROM parent WHERE key = 2400;
Specifies a fraction of the table size to add to
<varname>autovacuum_analyze_threshold</varname>
when deciding whether to trigger an <command>ANALYZE</>.
The default is 0.
1
.
The default is 0.
2
.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
This setting can be overridden for individual tables by entries in
...
...
doc/src/sgml/maintenance.sgml
浏览文件 @
ba9f9bf1
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.6
0 2006/08/28 13:37:18
petere Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.6
1 2006/08/29 11:37:47
petere Exp $ -->
<chapter id="maintenance">
<title>Routine Database Maintenance Tasks</title>
...
...
@@ -447,14 +447,14 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
</sect2>
<sect2 id="autovacuum">
<title id="autovacuum-title">The autovacuum daemon</title>
<title id="autovacuum-title">The auto
-
vacuum daemon</title>
<indexterm>
<primary>autovacuum</primary>
<secondary>general information</secondary>
</indexterm>
<para>
T
here is a
Beginning in <productname>PostgreSQL </productname> 8.1, t
here is a
separate optional server process called the <firstterm>autovacuum
daemon</firstterm>, whose purpose is to automate the execution of
<command>VACUUM</command> and <command>ANALYZE </command> commands.
...
...
@@ -465,9 +465,7 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
linkend="guc-stats-start-collector"> and <xref
linkend="guc-stats-row-level"> are set to <literal>true</literal>. Also,
it's important to allow a slot for the autovacuum process when choosing
the value of <xref linkend="guc-superuser-reserved-connections">. In
the default configuration, autovacuuming is enabled and the related
configuration parameters are appropriately set.
the value of <xref linkend="guc-superuser-reserved-connections">.
</para>
<para>
...
...
src/backend/utils/misc/guc.c
浏览文件 @
ba9f9bf1
...
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.34
4 2006/08/28 13:37:18
petere Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.34
5 2006/08/29 11:37:47
petere Exp $
*
*--------------------------------------------------------------------
*/
...
...
@@ -707,7 +707,7 @@ static struct config_bool ConfigureNamesBool[] =
NULL
},
&
pgstat_collect_tuplelevel
,
tru
e
,
NULL
,
NULL
fals
e
,
NULL
,
NULL
},
{
{
"stats_block_level"
,
PGC_SUSET
,
STATS_COLLECTOR
,
...
...
@@ -744,7 +744,7 @@ static struct config_bool ConfigureNamesBool[] =
NULL
},
&
autovacuum_start_daemon
,
tru
e
,
NULL
,
NULL
fals
e
,
NULL
,
NULL
},
{
...
...
@@ -1138,7 +1138,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&
ReservedBackends
,
3
,
0
,
INT_MAX
/
4
,
NULL
,
NULL
2
,
0
,
INT_MAX
/
4
,
NULL
,
NULL
},
{
...
...
@@ -1563,7 +1563,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&
autovacuum_vac_thresh
,
5
00
,
0
,
INT_MAX
,
NULL
,
NULL
10
00
,
0
,
INT_MAX
,
NULL
,
NULL
},
{
{
"autovacuum_analyze_threshold"
,
PGC_SIGHUP
,
AUTOVACUUM
,
...
...
@@ -1571,7 +1571,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&
autovacuum_anl_thresh
,
25
0
,
0
,
INT_MAX
,
NULL
,
NULL
50
0
,
0
,
INT_MAX
,
NULL
,
NULL
},
{
...
...
@@ -1726,7 +1726,7 @@ static struct config_real ConfigureNamesReal[] =
NULL
},
&
autovacuum_vac_scale
,
0
.
2
,
0
.
0
,
100
.
0
,
NULL
,
NULL
0
.
4
,
0
.
0
,
100
.
0
,
NULL
,
NULL
},
{
{
"autovacuum_analyze_scale_factor"
,
PGC_SIGHUP
,
AUTOVACUUM
,
...
...
@@ -1734,7 +1734,7 @@ static struct config_real ConfigureNamesReal[] =
NULL
},
&
autovacuum_anl_scale
,
0
.
1
,
0
.
0
,
100
.
0
,
NULL
,
NULL
0
.
2
,
0
.
0
,
100
.
0
,
NULL
,
NULL
},
/* End-of-list marker */
...
...
src/backend/utils/misc/postgresql.conf.sample
浏览文件 @
ba9f9bf1
...
...
@@ -59,7 +59,7 @@
# Note: increasing max_connections costs ~400 bytes of shared memory per
# connection slot, plus lock space (see max_locks_per_transaction). You
# might also need to raise shared_buffers to support more connections.
#superuser_reserved_connections =
3
# (change requires restart)
#superuser_reserved_connections =
2
# (change requires restart)
#unix_socket_directory = '' # (change requires restart)
#unix_socket_group = '' # (change requires restart)
#unix_socket_permissions = 0777 # octal
...
...
@@ -345,7 +345,7 @@
#stats_start_collector = on # needed for block or row stats
# (change requires restart)
#stats_block_level = off
#stats_row_level = o
n
#stats_row_level = o
ff
#stats_reset_on_server_start = off # (change requires restart)
...
...
@@ -361,15 +361,15 @@
# AUTOVACUUM PARAMETERS
#---------------------------------------------------------------------------
#autovacuum = o
n
# enable autovacuum subprocess?
#autovacuum = o
ff
# enable autovacuum subprocess?
#autovacuum_naptime = 60 # time between autovacuum runs, in secs
#autovacuum_vacuum_threshold =
5
00 # min # of tuple updates before
#autovacuum_vacuum_threshold =
10
00 # min # of tuple updates before
# vacuum
#autovacuum_analyze_threshold =
25
0 # min # of tuple updates before
#autovacuum_analyze_threshold =
50
0 # min # of tuple updates before
# analyze
#autovacuum_vacuum_scale_factor = 0.
2
# fraction of rel size before
#autovacuum_vacuum_scale_factor = 0.
4
# fraction of rel size before
# vacuum
#autovacuum_analyze_scale_factor = 0.
1
# fraction of rel size before
#autovacuum_analyze_scale_factor = 0.
2
# fraction of rel size before
# analyze
#autovacuum_vacuum_cost_delay = -1 # default vacuum cost delay for
# autovac, -1 means use
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录