Re: PostgreSQL vacuumdb question

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Wang Kuo-Ying <stu93303148(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL vacuumdb question
Date: 2009-04-26 03:42:02
Message-ID: dcc563d10904252042v791d766en414e32f7f8a86549@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Apr 25, 2009 at 9:27 PM, Wang Kuo-Ying <stu93303148(at)gmail(dot)com> wrote:
>
>
>   I want to know vacuumdb's advantages and fault. Although it could be nice
> when I use vacuumdb command about database efficiency . But when some of
> database would updating every day, just like online game. The game's
> database could updating data 24 hr....then I want to
> know, may I use vacuumdb command when database is updating. Is it could
> influence
> database efficienc??  Thx ^__________^

Is there some reason you're not using autovacuum? or is autovacuum on
but not doing its job?

If you're worrying about how bloated a database is becoming, download
the check_postgres.pl script and use it to track bloat in your dbs.
Or schedule a vacuum verbose to run each night (either with vacuumdb
-v or via psql) and send you the results to see how your FSM is
holding up.

You can vacuum anytime, and if it's too hard on IO you can increase
the vacuum_cost_delay to 10 or 20 milliseconds to reduce the load it
places on the system.

BTW, what pg version are you running?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2009-04-26 10:39:52 Re: deleting function
Previous Message Wang Kuo-Ying 2009-04-26 03:27:34 PostgreSQL vacuumdb question