Re: VACUUM process running for a long time - Mailing list pgsql-general

From Adrian von Bidder
Subject Re: VACUUM process running for a long time
Date
Msg-id 201004141728.06076@fortytwo.ch
Whole thread Raw
In response to VACUUM process running for a long time  (Jan Krcmar <honza801@gmail.com>)
Responses Re: VACUUM process running for a long time  (Jan Krcmar <honza801@gmail.com>)
List pgsql-general
On Wednesday 14 April 2010 16.01:39 Jan Krcmar wrote:

> the documentation says, one should run VACUUM if there are many
> changes in the database, but the vacuumdb never finishes sooner than
> the new data should be imported.
>
> is there any technique that can solve this problem?

 -> vacuum can run concurrently to other stuff, so it's not necessary to
wait before it finishes.
 -> in most cases, autovacuum should do the Right Thing(tm) atomatically, so
you should not need to call vacuum manually.

This is with a recent pg version.  Do you use a (very) old version with
autovacuum?  Is your db server running hot and can't really keep up with
inserting data as soon as vacuum starts running?

Note that the pg documentation contains lots of useful information about
tuning autovacuum.  Without knowing how your table looks and how your data
entry happens (in peaks?  or always at about the same rate?) we probably
can't help you much more.

cheers
-- vbi



>
> thanks
> fous

--
featured product: PostgreSQL - http://postgresql.org

Attachment

pgsql-general by date:

Previous
From: Krzysztof Szewczyk
Date:
Subject: C Functions
Next
From: Szymon Guz
Date:
Subject: Re: C Functions