Re: When does VACUUM FULL not clean out all deleted data?

From: James Cloos <cloos(at)jhcloos(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: When does VACUUM FULL not clean out all deleted data?
Date: 2008-01-04 15:35:59
Message-ID: m34pdteh7k.fsf@lugabout.jhcloos.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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(at)jhcloos(dot)com> OpenPGP: 1024D/ED7DAEA6

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Ruprecht 2008-01-04 16:13:48 Re: MacOS X 10.5.1 and compiling for multiple Architectures
Previous Message Popovici Alexandru 2008-01-04 14:58:23 invalid byte sequence for encoding "UNICODE":0xa1