From: Joshua D. Drake <jd@commandprompt.com>
To: James Cloos <cloos@jhcloos.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: When does VACUUM FULL not clean out all deleted data?
Date: Fri, 04 Jan 2008 08:26:25 -0800
Message-ID: <477E5E31.1040202@commandprompt.com> (raw)
In-Reply-To: <m34pdteh7k.fsf@lugabout.jhcloos.org>
References: <m3lk76du4c.fsf@lugabout.jhcloos.org>
<10656.1199426607@sss.pgh.pa.us>
<m34pdteh7k.fsf@lugabout.jhcloos.org>
James Cloos wrote:
>>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
>
>>> Why was the db using that extra five plus gigs?
>
> Tom> Smells like a hadn't-been-vacuuming-often-enough problem.
>
> Sorry, I forgot to mention: autovacuum was enabled and I also ran
> this script every night via cron:
>
> #!/bin/bash
> FULL=''
> test $(date +%w) -eq 0 && FULL='FULL'
> exec psql -U dbm -c "VACUUM ${FULL} VERBOSE ANALYZE" dbm
>
> The app at least felt faster with the daily vacuum, even though
> autovacuum was running. I don't have a good explanation for that,
> either.
Autovacuum by default won't do enough work for many production
databases. You still have to configure it.
Joshua D. Drake
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-admin@postgresql.org
Cc: jd@commandprompt.com, cloos@jhcloos.com, tgl@sss.pgh.pa.us
Subject: Re: When does VACUUM FULL not clean out all deleted data?
In-Reply-To: <477E5E31.1040202@commandprompt.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