Skip to content

Commit 82f7c32

Browse files
committed
Simplify the example of VACUUM in documentation.
Previously a detailed activity report by VACUUM VERBOSE ANALYZE was described as an example of VACUUM in docs. But it had been obsolete for a long time. For example, commit feb4f44 updated the content of that activity report in 2003, but we had forgotten to update the example. So basically we need to update the example. But since no one cared about the details of VACUUM output and complained about that mistake for such long time, per discussion on hackers, we decided to get rid of the detailed activity report from the example and simplify it. Back-patch to all supported versions. Reported by Masahiko Sawada, patch by me. Discussion: https://postgr.es/m/CAD21AoAGA2pB3p-CWmTkxBsbkZS1bcDGBLcYVcvcDxspG_XAfA@mail.gmail.com
1 parent 3455ddb commit 82f7c32

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

doc/src/sgml/ref/vacuum.sgml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -222,38 +222,11 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ <replaceable class="PARAMETER">
222222
<title>Examples</title>
223223

224224
<para>
225-
The following is an example from running <command>VACUUM</command> on a
226-
table in the regression database:
225+
To clean a single table <literal>onek</literal>, analyze it for
226+
the optimizer and print a detailed vacuum activity report:
227227

228228
<programlisting>
229-
regression=# VACUUM (VERBOSE, ANALYZE) onek;
230-
INFO: vacuuming "public.onek"
231-
INFO: index "onek_unique1" now contains 1000 tuples in 14 pages
232-
DETAIL: 3000 index tuples were removed.
233-
0 index pages have been deleted, 0 are currently reusable.
234-
CPU 0.01s/0.08u sec elapsed 0.18 sec.
235-
INFO: index "onek_unique2" now contains 1000 tuples in 16 pages
236-
DETAIL: 3000 index tuples were removed.
237-
0 index pages have been deleted, 0 are currently reusable.
238-
CPU 0.00s/0.07u sec elapsed 0.23 sec.
239-
INFO: index "onek_hundred" now contains 1000 tuples in 13 pages
240-
DETAIL: 3000 index tuples were removed.
241-
0 index pages have been deleted, 0 are currently reusable.
242-
CPU 0.01s/0.08u sec elapsed 0.17 sec.
243-
INFO: index "onek_stringu1" now contains 1000 tuples in 48 pages
244-
DETAIL: 3000 index tuples were removed.
245-
0 index pages have been deleted, 0 are currently reusable.
246-
CPU 0.01s/0.09u sec elapsed 0.59 sec.
247-
INFO: "onek": removed 3000 tuples in 108 pages
248-
DETAIL: CPU 0.01s/0.06u sec elapsed 0.07 sec.
249-
INFO: "onek": found 3000 removable, 1000 nonremovable tuples in 143 pages
250-
DETAIL: 0 dead tuples cannot be removed yet.
251-
There were 0 unused item pointers.
252-
0 pages are entirely empty.
253-
CPU 0.07s/0.39u sec elapsed 1.56 sec.
254-
INFO: analyzing "public.onek"
255-
INFO: "onek": 36 pages, 1000 rows sampled, 1000 estimated total rows
256-
VACUUM
229+
VACUUM (VERBOSE, ANALYZE) onek;
257230
</programlisting></para>
258231
</refsect1>
259232

0 commit comments

Comments
 (0)