]> granicus.if.org Git - postgresql/commitdiff
Clarify vacuum lazy can shrink a file under certain circumstances.
authorBruce Momjian <bruce@momjian.us>
Wed, 7 Dec 2005 05:36:08 +0000 (05:36 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 7 Dec 2005 05:36:08 +0000 (05:36 +0000)
doc/src/sgml/maintenance.sgml

index 66356c0d012540e04abf057678d3a0cf41d3ffba..532dfe0ee065259dc1daad7c5db3188f9e835f6f 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.51 2005/11/04 23:14:00 petere Exp $
+$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.51.2.1 2005/12/07 05:36:08 momjian Exp $
 -->
 
 <chapter id="maintenance">
@@ -141,11 +141,12 @@ $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.51 2005/11/04 23:14:00 pete
     command. The first form, known as <quote>lazy vacuum</quote> or
     just <command>VACUUM</command>, marks expired data in tables and
     indexes for future reuse; it does <emphasis>not</emphasis> attempt
-    to reclaim the space used by this expired data
-    immediately. Therefore, the table file is not shortened, and any
-    unused space in the file is not returned to the operating
-    system. This variant of <command>VACUUM</command> can be run
-    concurrently with normal database operations.
+    to reclaim the space used by this expired data unless the space is
+    at the end of the table and an exclusive lock can be obtained easily
+    on the table. Unused space at the start or middle of the file does
+    not result in the file being shortened and space returned to the
+    operating system. This variant of <command>VACUUM</command> can be
+    run concurrently with normal database operations.
    </para>
 
    <para>