Re: vacuumdb question/problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Ondrejik <David(dot)Ondrejik(at)noaa(dot)gov>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: vacuumdb question/problem
Date: 2011-07-15 19:11:11
Message-ID: 17933.1310757071@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

David Ondrejik <David(dot)Ondrejik(at)noaa(dot)gov> writes:
> I am still wondering how the vacuum process actually works. When it
> throws the output lines that show how many rows are
> recoverable/nonremovable, does this mean that the vacuum has completed?

No, that's just the end of the first pass over the table. After that it
cleans out dead index entries, and then it sets about moving rows down
to fill free space.

As far as your original question is concerned: if you have reason to
think there's a lot of bloat, CLUSTER would be the thing to use.
Old-style VACUUM FULL is seriously inefficient when there's a lot of
rows that have to be moved.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2011-07-15 19:17:47 Re: vacuumdb question/problem
Previous Message David Ondrejik 2011-07-15 18:47:51 Re: vacuumdb question/problem