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

Commitfa0d1fd

Browse files
committed
Simplify the example of VACUUM in documentation.
Previously a detailed activity report by VACUUM VERBOSE ANALYZE wasdescribed as an example of VACUUM in docs. But it had been obsoletefor a long time. For example, commitfeb4f44updated the content of that activity report in 2003, but we hadforgotten to update the example.So basically we need to update the example. But since no one caredabout the details of VACUUM output and complained about that mistakefor such long time, per discussion on hackers, we decided to get ridof 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 parent8433e0b commitfa0d1fd

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

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

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -244,39 +244,11 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ <replaceable class="PARAMETER">
244244
<title>Examples</title>
245245

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

250250
<programlisting>
251-
regression=# VACUUM (VERBOSE, ANALYZE) onek;
252-
INFO: vacuuming "public.onek"
253-
INFO: index "onek_unique1" now contains 1000 tuples in 14 pages
254-
DETAIL: 3000 index tuples were removed.
255-
0 index pages have been deleted, 0 are currently reusable.
256-
CPU 0.01s/0.08u sec elapsed 0.18 sec.
257-
INFO: index "onek_unique2" now contains 1000 tuples in 16 pages
258-
DETAIL: 3000 index tuples were removed.
259-
0 index pages have been deleted, 0 are currently reusable.
260-
CPU 0.00s/0.07u sec elapsed 0.23 sec.
261-
INFO: index "onek_hundred" now contains 1000 tuples in 13 pages
262-
DETAIL: 3000 index tuples were removed.
263-
0 index pages have been deleted, 0 are currently reusable.
264-
CPU 0.01s/0.08u sec elapsed 0.17 sec.
265-
INFO: index "onek_stringu1" now contains 1000 tuples in 48 pages
266-
DETAIL: 3000 index tuples were removed.
267-
0 index pages have been deleted, 0 are currently reusable.
268-
CPU 0.01s/0.09u sec elapsed 0.59 sec.
269-
INFO: "onek": removed 3000 tuples in 108 pages
270-
DETAIL: CPU 0.01s/0.06u sec elapsed 0.07 sec.
271-
INFO: "onek": found 3000 removable, 1000 nonremovable tuples in 143 pages
272-
DETAIL: 0 dead tuples cannot be removed yet.
273-
There were 0 unused item pointers.
274-
Skipped 0 pages due to buffer pins.
275-
0 pages are entirely empty.
276-
CPU 0.07s/0.39u sec elapsed 1.56 sec.
277-
INFO: analyzing "public.onek"
278-
INFO: "onek": 36 pages, 1000 rows sampled, 1000 estimated total rows
279-
VACUUM
251+
VACUUM (VERBOSE, ANALYZE) onek;
280252
</programlisting></para>
281253
</refsect1>
282254

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp