@@ -21,9 +21,20 @@ PostgreSQL documentation
21
21
22
22
<refsynopsisdiv>
23
23
<synopsis>
24
- VACUUM [ ( { FULL | FREEZE | VERBOSE | ANALYZE | DISABLE_PAGE_SKIPPING } [, ...] ) ] [ <replaceable class="PARAMETER">table_name</replaceable> [ (<replaceable class="PARAMETER">column_name</replaceable> [, ...] ) ] ]
25
- VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] [ <replaceable class="PARAMETER">table_name</replaceable> ]
26
- VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ <replaceable class="PARAMETER">table_name</replaceable> [ (<replaceable class="PARAMETER">column_name</replaceable> [, ...] ) ] ]
24
+ VACUUM [ ( <replaceable class="PARAMETER">option</replaceable> [, ...] ) ] [ <replaceable class="PARAMETER">table_and_columns</replaceable> [, ...] ]
25
+ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] [ ANALYZE ] [ <replaceable class="PARAMETER">table_and_columns</replaceable> [, ...] ]
26
+
27
+ <phrase>where <replaceable class="PARAMETER">option</replaceable> can be one of:</phrase>
28
+
29
+ FULL
30
+ FREEZE
31
+ VERBOSE
32
+ ANALYZE
33
+ DISABLE_PAGE_SKIPPING
34
+
35
+ <phrase>and <replaceable class="PARAMETER">table_and_columns</replaceable> is:</phrase>
36
+
37
+ <replaceable class="PARAMETER">table_name</replaceable> [ ( <replaceable class="PARAMETER">column_name</replaceable> [, ...] ) ]
27
38
</synopsis>
28
39
</refsynopsisdiv>
29
40
@@ -40,9 +51,10 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ <replaceable class="PARAMETER">
40
51
</para>
41
52
42
53
<para>
43
- With no parameter, <command>VACUUM</command> processes every table in the
44
- current database that the current user has permission to vacuum.
45
- With a parameter, <command>VACUUM</command> processes only that table.
54
+ Without a <replaceable class="PARAMETER">table_and_columns</replaceable>
55
+ list, <command>VACUUM</command> processes every table and materialized view
56
+ in the current database that the current user has permission to vacuum.
57
+ With a list, <command>VACUUM</command> processes only those table(s).
46
58
</para>
47
59
48
60
<para>
@@ -141,8 +153,8 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ <replaceable class="PARAMETER">
141
153
except when performing an aggressive vacuum, some pages may be skipped
142
154
in order to avoid waiting for other sessions to finish using them.
143
155
This option disables all page-skipping behavior, and is intended to
144
- be used only the contents of the visibility map are thought to
145
- be suspect, which should happen only if there is a hardware or software
156
+ be used only when the contents of the visibility map are
157
+ suspect, which should happen only if there is a hardware or software
146
158
issue causing database corruption.
147
159
</para>
148
160
</listitem>
@@ -152,9 +164,8 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ <replaceable class="PARAMETER">
152
164
<term><replaceable class="PARAMETER">table_name</replaceable></term>
153
165
<listitem>
154
166
<para>
155
- The name (optionally schema-qualified) of a specific table to
156
- vacuum. If omitted, all regular tables and materialized views in the
157
- current database are vacuumed. If the specified table is a partitioned
167
+ The name (optionally schema-qualified) of a specific table or
168
+ materialized view to vacuum. If the specified table is a partitioned
158
169
table, all of its leaf partitions are vacuumed.
159
170
</para>
160
171
</listitem>
@@ -165,7 +176,8 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ <replaceable class="PARAMETER">
165
176
<listitem>
166
177
<para>
167
178
The name of a specific column to analyze. Defaults to all columns.
168
- If a column list is specified, <literal>ANALYZE</> is implied.
179
+ If a column list is specified, <literal>ANALYZE</> must also be
180
+ specified.
169
181
</para>
170
182
</listitem>
171
183
</varlistentry>
0 commit comments