From: James Cloos <cloos@jhcloos.com>
To: 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 15:35:59 +0000
Message-ID: <m34pdteh7k.fsf@lugabout.jhcloos.org> (raw)
In-Reply-To: <10656.1199426607@sss.pgh.pa.us>
References: <m3lk76du4c.fsf@lugabout.jhcloos.org>
<10656.1199426607@sss.pgh.pa.us>
>>>>> "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.
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
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: cloos@jhcloos.com, tgl@sss.pgh.pa.us
Subject: Re: When does VACUUM FULL not clean out all deleted data?
In-Reply-To: <m34pdteh7k.fsf@lugabout.jhcloos.org>
* 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