pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
To: Khangelani Gama <Khangelani.Gama@ucs-software.co.za>
Subject: Re: Table space grow big - PostgreSQL
Date: Wed, 05 May 2010 08:59:21 -0500
Message-ID: <4BE1336A02000025000312CE@gw.wicourts.gov> (raw)
In-Reply-To: <D78A8169F9436B4DB978300336168F3B3359C9CD20@SWBREXCH00.ucs-software.net>
References: <D78A8169F9436B4DB978300336168F3B3359C9CBB9@SWBREXCH00.ucs-software.net>
	<20100505114210.GD16616@miranda>
	<D78A8169F9436B4DB978300336168F3B3359C9CD20@SWBREXCH00.ucs-software.net>

Khangelani Gama <Khangelani.Gama@ucs-software.co.za> wrote:
 
> There is a script that runs once a month
 
Most likely that should be daily, or at least weekly.
 
> "REINDEX TABLE ${table}"
> "VACUUM FULL VERBOSE ${table}"
> "VACUUM ANALYZE ${table}"
 
That's the wrong order.  Try:
 
"VACUUM FULL VERBOSE ANALYZE ${table}"
"REINDEX TABLE ${table}"
 
With your current order, the VACUUM FULL bloats the indexes you've
just rebuilt.
 
If you vacuum frequently enough, you should not need to use the FULL
option.
 
> Dumping and restoring the database doesn't decrease the space
 
Now, that's odd.  You're not restoring back into the same database
without dropping it first (using the "clean" option), are you? 
Perhaps you have some very wide indexes, or a very large number of
small tables?
 
> There is nothing set in the postgresql.conf file that has to do
> with vacuum analyze.
 
Well, that wasn't the only thing I would look for; however, I'm not
sure how many of the things I usually check exist in 7.3 or work the
same way.  :-(
 
-Kevin



view thread (14+ messages)  latest in thread

Message-ID: <4BE1336A02000025000312CE@gw.wicourts.gov>
Permalink:  ../4BE1336A02000025000312CE@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4BE1336A02000025000312CE@gw.wicourts.gov

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, Khangelani.Gama@ucs-software.co.za
  Subject: Re: Table space grow big - PostgreSQL
  In-Reply-To: <4BE1336A02000025000312CE@gw.wicourts.gov>
  References: <D78A8169F9436B4DB978300336168F3B3359C9CBB9@SWBREXCH00.ucs-software.net> <20100505114210.GD16616@miranda> <D78A8169F9436B4DB978300336168F3B3359C9CD20@SWBREXCH00.ucs-software.net> <4BE1336A02000025000312CE@gw.wicourts.gov>

* 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