Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
18ea8ae5
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,发现更多精彩内容 >>
提交
18ea8ae5
编写于
9月 23, 2005
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Attached patch takes a swing at improving the autovacuum wording in
maintenance.sgml. Robert Treat [ Also fix create domain markup.]
上级
0135cd88
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
16 deletion
+23
-16
doc/src/sgml/maintenance.sgml
doc/src/sgml/maintenance.sgml
+13
-12
doc/src/sgml/ref/create_domain.sgml
doc/src/sgml/ref/create_domain.sgml
+10
-4
未找到文件。
doc/src/sgml/maintenance.sgml
浏览文件 @
18ea8ae5
<!--
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.4
7 2005/09/16 03:12:32 alvherre
Exp $
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.4
8 2005/09/23 02:01:34 momjian
Exp $
-->
<chapter id="maintenance">
...
...
@@ -180,7 +180,8 @@ $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.47 2005/09/16 03:12:32 alvh
rate of data modification <command>VACUUM</command> busy tables as
often as once every few minutes.) If you have multiple databases
in a cluster, don't forget to <command>VACUUM</command> each one;
the program <filename>vacuumdb</> may be helpful.
the program <xref linkend="app-vacuumdb" endterm="app-vacuumdb-title">
may be helpful.
</para>
<para>
...
...
@@ -466,7 +467,7 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
<para>
Beginning in <productname>PostgreSQL </productname> 8.1, there is a
separate optional server process called the <firstterm>autovacuum
daemon</firstterm>, whose purpose is to automate the
issuance
of
daemon</firstterm>, whose purpose is to automate the
execution
of
<command>VACUUM</command> and <command>ANALYZE </command> commands.
When enabled, the autovacuum daemon runs periodically and checks for
tables that have had a large number of inserted, updated or deleted
...
...
@@ -521,29 +522,29 @@ vacuum threshold = vacuum base threshold + vacuum scale factor * number of tuple
<para>
Note that if any of the values in <structname>pg_autovacuum</structname>
is
set to a negative number, or if a tuple is not present at all in
are
set to a negative number, or if a tuple is not present at all in
<structname>pg_autovacuum</structname> for any particular table, the
equivalent value from <filename>postgresql.conf</filename> is used.
</para>
<para>
Besides the base threshold values and scale factors, there are three
parameters that can be set for each table in <structname>pg_autovacuum</structname>:
the vacuum cost delay
parameters that can be set for each table in <structname>pg_autovacuum</structname>.
The first parameter, <structname>pg_autovacuum</>.<structfield>enabled</>,
can be used to instruct the autovacuum daemon to skip any particular table
by setting it to <literal>false</literal>.
The other two, the vacuum cost delay
(<structname>pg_autovacuum</structname>.<structfield>vac_cost_delay</structfield>)
and the vacuum cost limit
(<structname>pg_autovacuum</structname>.<structfield>vac_cost_limit</structfield>)
.
They
are used to set table-specific values for the
(<structname>pg_autovacuum</structname>.<structfield>vac_cost_limit</structfield>)
,
are used to set table-specific values for the
<xref linkend="runtime-config-resource-vacuum-cost" endterm="runtime-config-resource-vacuum-cost-title">
feature. The above note about negative values also applies here, but
also note that if the <filename>postgresql.conf</filename> variables
<varname>autovacuum_vacuum_cost_limit</varname> and
<varname>autovacuum_vacuum_cost_delay</varname> are also set to negative
values, the <varname>vacuum_cost_limit</varname> and
values, the
global
<varname>vacuum_cost_limit</varname> and
<varname>vacuum_cost_delay</varname> values will be used instead.
The other parameter, <structname>pg_autovacuum</>.<structfield>enabled</>,
can be used to instruct the autovacuum daemon to skip any particular table
by setting it to <literal>false</literal>.
</para>
<note>
...
...
doc/src/sgml/ref/create_domain.sgml
浏览文件 @
18ea8ae5
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.2
3 2005/09/22 23:56:46
momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.2
4 2005/09/23 02:01:35
momjian Exp $
PostgreSQL documentation
-->
...
...
@@ -52,10 +52,16 @@ where <replaceable class="PARAMETER">constraint</replaceable> is:
into a single location for maintenance. For example, an email address
column may be used in several tables, all with the same properties.
Define a domain and use that rather than setting up each table's
constraints individually. <note>Keep in mind also that declaring a
function result value as a domain is pretty dangerous, because none of
the PLs enforce domain constraints on their results.</note>
constraints individually.
</para>
<note>
<para>
Keep in mind also that declaring a function result value as a domain
is pretty dangerous, because none of the PLs enforce domain constraints
on their results.
</para>
</note>
</refsect1>
<refsect1>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录