Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7c15b10

Browse files
committed
Improve pg_autovacuum documentation to clarify that the enabled field cannot
prevent anti-wraparound vacuuming, and to caution against setting unreasonablysmall values of freeze_max_age. Also put in a notice that this catalog islikely to disappear entirely in some future release. Per discussion ofbug #3898 from Steven Flatt.
1 parent3c9ae73 commit7c15b10

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

‎doc/src/sgml/catalogs.sgml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.160 2008/01/29 13:03:50 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.161 2008/01/31 18:40:02 tgl Exp $ -->
22
<!--
33
Documentation of the system catalogs, directed toward PostgreSQL developers
44
-->
@@ -1245,6 +1245,14 @@
12451245
about the autovacuum daemon, see <xref linkend="autovacuum">.
12461246
</para>
12471247

1248+
<note>
1249+
<para>
1250+
It is likely that <structname>pg_autovacuum</structname> will disappear
1251+
in a future release, with the information instead being kept in
1252+
<structname>pg_class</>.<structfield>reloptions</> entries.
1253+
</para>
1254+
</note>
1255+
12481256
<table>
12491257
<title><structname>pg_autovacuum</> Columns</title>
12501258

@@ -1270,7 +1278,8 @@
12701278
<entry><structfield>enabled</structfield></entry>
12711279
<entry><type>bool</type></entry>
12721280
<entry></entry>
1273-
<entry>If false, this table is never autovacuumed</entry>
1281+
<entry>If false, this table will not be autovacuumed, except
1282+
to prevent transaction ID wraparound</entry>
12741283
</row>
12751284

12761285
<row>
@@ -1352,7 +1361,9 @@
13521361
to prevent transaction ID wraparound if the table's
13531362
<structname>pg_class</>.<structfield>relfrozenxid</> field attains an age
13541363
of more than <structfield>freeze_max_age</> transactions, whether the table
1355-
has been changed or not. The system will launch autovacuum to perform
1364+
has been changed or not, even if
1365+
<structname>pg_autovacuum</>.<structfield>enabled</> is set to
1366+
<literal>false</> for it. The system will launch autovacuum to perform
13561367
such <command>VACUUM</>s even if autovacuum is otherwise disabled.
13571368
See <xref linkend="vacuum-for-wraparound"> for more about wraparound
13581369
prevention.
@@ -1364,12 +1375,15 @@
13641375
be used for this particular value. Observe that the
13651376
<structfield>vac_cost_delay</> variable inherits its default value from the
13661377
<xref linkend="guc-autovacuum-vacuum-cost-delay"> configuration parameter,
1367-
or from <xref linkend="guc-vacuum-cost-delay"> if the former is set to a negative
1368-
value. The same applies to <structfield>vac_cost_limit</>.
1378+
or from <xref linkend="guc-vacuum-cost-delay"> if the former is set to a
1379+
negativevalue. The same applies to <structfield>vac_cost_limit</>.
13691380
Also, autovacuum will ignore attempts to set a per-table
1370-
<structfield>freeze_max_age</> larger than the system-wide setting (it can only be set
1371-
smaller), and the <structfield>freeze_min_age value</> will be limited to half the
1372-
system-wide <xref linkend="guc-autovacuum-freeze-max-age"> setting.
1381+
<structfield>freeze_max_age</> larger than the system-wide setting (it can
1382+
only be set smaller), and the <structfield>freeze_min_age</> value will be
1383+
limited to half the system-wide <xref
1384+
linkend="guc-autovacuum-freeze-max-age"> setting. Note that while you
1385+
can set <structfield>freeze_max_age</> very small, or even zero, this
1386+
is usually unwise since it will force frequent vacuuming.
13731387
</para>
13741388

13751389
</sect1>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp