pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Geoffrey <lists@serioustechnology.com>
To: pgsql-admin@postgresql.org
Subject: Re: When does VACUUM FULL not clean out all deleted data?
Date: Mon, 07 Jan 2008 10:53:11 -0500
Message-ID: <47824AE7.6000006@serioustechnology.com> (raw)
In-Reply-To: <dcc563d10801040902t15784c38vff8c91e3b9207a9c@mail.gmail.com>
References: <m3lk76du4c.fsf@lugabout.jhcloos.org>
	<10656.1199426607@sss.pgh.pa.us>
	<m34pdteh7k.fsf@lugabout.jhcloos.org>
	<dcc563d10801040902t15784c38vff8c91e3b9207a9c@mail.gmail.com>

Scott Marlowe wrote:

> Note that routine vacuum FULL is not a good idea actually.  vacuum
> full is something you run when things have gone wrong (i.e. not enough
> regular vacuuming) and it is usually best followed by reindexing all
> your indexes.
> 
> It's far better to keep track of bloat and run vacuum full, if at all,
> by hand, and only when needed.  Running it regularly with no
> reindexing often results in index bloat which makes the database
> slower not faster.

I've been trying to research this issue.  I can't really find 
documentation that defines when to 'vacuum full.'  That is other then 
this posting on the list and the following from the man page:

'The FULL option is not recommended for routine use, but may be useful 
in special cases. An example is when you have deleted most of the rows 
in a table and would like the table to physically shrink to occupy less 
disk space. VACUUM FULL will usually shrink the table more than a plain 
VACUUM would.'

So, I'm wondering if anyone can point me to more specific information as 
to when, if ever, you should 'vacuum full?'

The more research I do, the more it appears that you should only 'vacuum 
full' when you run into space issues.

-- 
Until later, Geoffrey

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
  - Benjamin Franklin



view thread (10+ messages)  latest in thread

Message-ID: <47824AE7.6000006@serioustechnology.com>
Permalink:  ../47824AE7.6000006@serioustechnology.com/
Also on:    postgresql.org/message-id/47824AE7.6000006@serioustechnology.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-admin@postgresql.org
  Cc: lists@serioustechnology.com
  Subject: Re: When does VACUUM FULL not clean out all deleted data?
  In-Reply-To: <47824AE7.6000006@serioustechnology.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