pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Kieren Scott <kierenscott@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: vacuum full table - internals in 8.3
Date: Tue, 05 Oct 2010 11:35:14 -0500
Message-ID: <4CAB0D720200002500036534@gw.wicourts.gov> (raw)
In-Reply-To: <BAY149-w444402192D6FA5523E30F3AE6D0@phx.gbl>
References: <BAY149-w240CEA9C7FB8AFC26C48B2AE6D0@phx.gbl>
	<4CAAFCDA0200002500036520@gw.wicourts.gov>
	<BAY149-w444402192D6FA5523E30F3AE6D0@phx.gbl>

Kieren Scott <kierenscott@hotmail.com> wrote:
 
> Could you explain what causes index bloat when running vacuum
> full?
 
To collapse the space, it copies tuples to locations closer to the
front of the table.  The index needs to contain references to the
old and new tuple copies until the VACUUM FULL commits or rolls
back.  VACUUM FULL doesn't attempt to reorganize the index or free
index space, so the space previously held by index entries pointing
to the old tuples (if you commit) or the new tuples (if you roll
back) will be dead space.  It may be reused by later index
insertions, but the empty space is likely to cause a lot of
partially-filled blocks to bog down performance unless there is a
REINDEX.
 
-Kevin



view thread (5+ messages)  latest in thread

Message-ID: <4CAB0D720200002500036534@gw.wicourts.gov>
Permalink:  ../4CAB0D720200002500036534@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4CAB0D720200002500036534@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, kierenscott@hotmail.com
  Subject: Re: vacuum full table - internals in 8.3
  In-Reply-To: <4CAB0D720200002500036534@gw.wicourts.gov>
  References: <BAY149-w240CEA9C7FB8AFC26C48B2AE6D0@phx.gbl> <4CAAFCDA0200002500036520@gw.wicourts.gov> <BAY149-w444402192D6FA5523E30F3AE6D0@phx.gbl> <4CAB0D720200002500036534@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