Re: vacuumdb question/problem - Mailing list pgsql-admin

From Tom Lane
Subject Re: vacuumdb question/problem
Date
Msg-id 17933.1310757071@sss.pgh.pa.us
Whole thread Raw
In response to Re: vacuumdb question/problem  (David Ondrejik <David.Ondrejik@noaa.gov>)
List pgsql-admin
David Ondrejik <David.Ondrejik@noaa.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

pgsql-admin by date:

Previous
From: David Ondrejik
Date:
Subject: Re: vacuumdb question/problem
Next
From: "Kevin Grittner"
Date:
Subject: Re: vacuumdb question/problem