pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Madison Kelly <linux@alteeve.com>
Cc: Brad Nicholson <bnichols@ca.afilias.info>
Cc: Gary Doades <gpd@gpdnet.co.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: DB is slow until DB is reloaded
Date: Mon, 04 Jan 2010 13:53:29 -0800
Message-ID: <4B426359.9040601@pinpointresearch.com> (raw)
In-Reply-To: <4B425E93.1050207@alteeve.com>
References: <4B423D22.7040803@alteeve.com>
<4B424215.70605@pinpointresearch.com>
<4B424FF6.40207@alteeve.com>
<4B425222.7070905@gpdnet.co.uk>
<4B425555.6020709@alteeve.com>
<1262638856.29852.4.camel@bnicholson-desktop>
<4B425E93.1050207@alteeve.com>
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
view thread (25+ messages) latest in thread
Message-ID: <4B426359.9040601@pinpointresearch.com> Permalink: ../4B426359.9040601@pinpointresearch.com/ Also on: postgresql.org/message-id/4B426359.9040601@pinpointresearch.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-performance@postgresql.org Cc: scrawford@pinpointresearch.com, linux@alteeve.com, bnichols@ca.afilias.info, gpd@gpdnet.co.uk Subject: Re: DB is slow until DB is reloaded In-Reply-To: <4B426359.9040601@pinpointresearch.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox