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

Commit0867493

Browse files
committed
Document need for periodic REINDEX in VACUUM FULL cases.
1 parent1a62813 commit0867493

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

‎doc/src/sgml/maintenance.sgml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.66 2007/01/16 18:26:02 alvherre Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.67 2007/01/31 04:13:22 momjian Exp $ -->
22

33
<chapter id="maintenance">
44
<title>Routine Database Maintenance Tasks</title>
@@ -615,9 +615,7 @@ analyze threshold = analyze base threshold + analyze scale factor * number of tu
615615
for inefficient use of space: if all but a few index keys on a page have
616616
been deleted, the page remains allocated. So a usage pattern in which all
617617
but a few keys in each range are eventually deleted will see poor use of
618-
space. The potential for bloat is not indefinite &mdash; at worst there
619-
will be one key per page &mdash; but it may still be worthwhile to schedule
620-
periodic reindexing for indexes that have such usage patterns.
618+
space. For such usage patterns, periodic reindexing is recommended.
621619
</para>
622620

623621
<para>

‎doc/src/sgml/ref/vacuum.sgml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/vacuum.sgml,v 1.45 2006/12/27 14:55:17 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/vacuum.sgml,v 1.46 2007/01/31 04:13:22 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -167,6 +167,9 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ <replaceable class="PARAMETER">
167167
most of the rows in a table and would like the table to physically shrink
168168
to occupy less disk space. <command>VACUUM FULL</command> will usually
169169
shrink the table more than a plain <command>VACUUM</command> would.
170+
The <option>FULL</option> option does not shrink indexes; a periodic
171+
<command>REINDEX</> is still recommended. In fact, it is often faster
172+
to drop all indexes, <command>VACUUM FULL</>, and recreate the indexes.
170173
</para>
171174

172175
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp