pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-general@postgresql.org
Subject: Re: Auto Vacuum question?
Date: Thu, 7 Jun 2007 11:30:42 -0400
Message-ID: <20070607153042.GD14087@phlogiston.dyndns.org> (raw)
In-Reply-To: <1180955712.688195.233560@i38g2000prf.googlegroups.com>
References: <1180955712.688195.233560@i38g2000prf.googlegroups.com>

On Mon, Jun 04, 2007 at 04:15:12AM -0700, ivan.hou@msa.hinet.net wrote:
> after i executed the command " vaccumdb -f -z testdb", but the size
> just decreased 1 or 2MB...
> what's the problem?

vacuumdb -f does a FULL vacuum, which is blocking and compacts the
tables.  If it only compacted 1 or 2 M, then there are two
possibilities:

1.	You really do have that much data.  You haven't told us
anything about the data, what it looks like, how wide the tables are,
whether you have large objects &c., whether the character set is
multibyte. . .

2.	You have at least one long-running transaction that is
perhaps doing nothing, but that is preventing VACUUM from recovering
space.  What does ps -auxww | grep postgres (or something equivalant)
show you?  

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
Users never remark, "Wow, this software may be buggy and hard 
to use, but at least there is a lot of code underneath."
		--Damien Katz



view thread (9+ messages)  latest in thread

Message-ID: <20070607153042.GD14087@phlogiston.dyndns.org>
Permalink:  ../20070607153042.GD14087@phlogiston.dyndns.org/
Also on:    postgresql.org/message-id/20070607153042.GD14087@phlogiston.dyndns.org

 · 

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-general@postgresql.org
  Cc: ajs@crankycanuck.ca
  Subject: Re: Auto Vacuum question?
  In-Reply-To: <20070607153042.GD14087@phlogiston.dyndns.org>
  References: <1180955712.688195.233560@i38g2000prf.googlegroups.com> <20070607153042.GD14087@phlogiston.dyndns.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