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

Commitec19693

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 parent5ded4bd commitec19693

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
@@ -246,39 +246,11 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ <replaceable class="PARAMETER">
246246
<title>Examples</title>
247247

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp