Re: Vacuum Full is *hideously* slow!

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com>
Cc: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Vacuum Full is *hideously* slow!
Date: 2008-11-16 10:38:29
Message-ID: 20081116103829.GA25476@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Nov 16, 2008 at 06:05:40AM +0800, Phoenix Kiula wrote:
> How long should cluster take on a db that's about 5.5GB in size? Is it
> worth doing on a production db? The db is running fast now anyway, so
> the only reason I am even thinking about this is because of the
> results of a VACUUM ANALYZE, which give me this:

How long it takes to cluster depends on how many rows there are in the
table and how ordered they are. How long a VACUUM FULL takes depends on
how big the tables is and how many gaps there are to fill. If you have
a big table (in actual space) but it only has a few rows (it's very
bloated) a cluter will will all the time.

> ---
> INFO: "links": found 5427 removable, 8876599 nonremovable row
> versions in 483102 pages
> DETAIL: 96 dead row versions cannot be removed yet.
> There were 2135991 unused item pointers.
> 235 pages contain useful free space.
> ---

This table looks fine. Only 235 pages have useful free space. The
483102 pages just means the table is 483102*8K = 3.9GB in size. I
imagine you max_fsm_pages is somewhat larger than 235 pages.

If yo uwant proper estimates for max_fsm_pages you should vacuum the
entire DB, then it'll tell you.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michelle Konzack 2008-11-16 10:41:50 Re: Database access over the Internet...
Previous Message Tony Caduto 2008-11-16 09:51:57 Re: 8.3 libpq.dll not working on some versions of windows