Skip to content

Commit 95aca45

Browse files
committed
Clarify vacuum lazy can shrink a file under certain circumstances.
1 parent 887a7c6 commit 95aca45

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/src/sgml/maintenance.sgml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.51 2005/11/04 23:14:00 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.52 2005/12/07 05:35:53 momjian Exp $
33
-->
44

55
<chapter id="maintenance">
@@ -141,11 +141,12 @@ $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.51 2005/11/04 23:14:00 pete
141141
command. The first form, known as <quote>lazy vacuum</quote> or
142142
just <command>VACUUM</command>, marks expired data in tables and
143143
indexes for future reuse; it does <emphasis>not</emphasis> attempt
144-
to reclaim the space used by this expired data
145-
immediately. Therefore, the table file is not shortened, and any
146-
unused space in the file is not returned to the operating
147-
system. This variant of <command>VACUUM</command> can be run
148-
concurrently with normal database operations.
144+
to reclaim the space used by this expired data unless the space is
145+
at the end of the table and an exclusive lock can be obtained easily
146+
on the table. Unused space at the start or middle of the file does
147+
not result in the file being shortened and space returned to the
148+
operating system. This variant of <command>VACUUM</command> can be
149+
run concurrently with normal database operations.
149150
</para>
150151

151152
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy