pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: Scott Marlowe <smarlowe@g2switchworks.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Vacuum full on a big table
Date: Thu, 17 Mar 2005 17:35:06 -0500
Message-ID: <27985.1111098906@sss.pgh.pa.us> (raw)
In-Reply-To: <4239FC4D.40501@bigfoot.com>
References: <4239F22C.4040401@bigfoot.com>
	<1111094421.28555.244.camel@state.g2switchworks.com>
	<4239FC4D.40501@bigfoot.com>

Gaetano Mendola <mendola@bigfoot.com> writes:
> Scott Marlowe wrote:
>> Is there a reason you're doing a full vacuum? 

> Because I'm only running pg_autovacuum since one month now, but I see
> that for same table is a disaster do not vacuum full once in a day.

You need to find out why regular vacuum isn't getting the job done,
not look for a bigger hammer.  What is growing, exactly --- the table,
its indexes (all of them, or only some), the TOAST table or index?
Do you have adequate FSM space according to what VACUUM VERBOSE says?

It's much more likely that we'd remove VACUUM FULL entirely than do
major work on it (like try to make it work on part of a table, which
is something I don't believe could work anyway).  That entire approach
is fundamentally broken when it comes to major rearrangements of huge
tables: it requires exclusive lock, it takes forever, and it bloats the
table's indexes.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <27985.1111098906@sss.pgh.pa.us>
Permalink:  ../27985.1111098906@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27985.1111098906@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, mendola@bigfoot.com, smarlowe@g2switchworks.com
  Subject: Re: Vacuum full on a big table
  In-Reply-To: <27985.1111098906@sss.pgh.pa.us>
  References: <4239F22C.4040401@bigfoot.com> <1111094421.28555.244.camel@state.g2switchworks.com> <4239FC4D.40501@bigfoot.com> <27985.1111098906@sss.pgh.pa.us>

* 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