Re: DB is slow until DB is reloaded

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: Madison Kelly <linux(at)alteeve(dot)com>
Cc: Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info>, Gary Doades <gpd(at)gpdnet(dot)co(dot)uk>, pgsql-performance(at)postgresql(dot)org
Subject: Re: DB is slow until DB is reloaded
Date: 2010-01-04 21:53:29
Message-ID: 4B426359.9040601@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Madison Kelly wrote:
>
> I wanted to get ahead of the problem, hence my question here. :)
> I've set this to run at night ('iwt' being the DB in question):
>
> su postgres -c "psql iwt -c \"VACUUM ANALYZE VERBOSE\"

And why not the vacuumdb command?:

su postgres -c "vacuumdb --analyze --verbose iwt"

But this is duct-tape and bailing-wire. You REALLY need to make sure
that autovacuum is running - you are likely to have much better results
with less pain.

Cheers,
Steve

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Madison Kelly 2010-01-04 21:54:19 Re: DB is slow until DB is reloaded
Previous Message Robert Haas 2010-01-04 21:53:18 Re: query looping?