pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-admin@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gregory Maxwell <gmaxwell@gmail.com>
Subject: Re: Bloated pg_shdepend_depender_index
Date: Fri, 24 Mar 2006 11:50:19 +0100
Message-ID: <200603241150.20021.peter_e@gmx.net> (raw)
In-Reply-To: <27588.1143175698@sss.pgh.pa.us>
References: <e692861c0603231716j63d712eemfe7292ff968801a9@mail.gmail.com>
	<e692861c0603231958m11472300gb1c32cf0e998a3cd@mail.gmail.com>
	<27588.1143175698@sss.pgh.pa.us>

Am Freitag, 24. März 2006 05:48 schrieb Tom Lane:
> Well, the VACUUM FULL algorithm is incapable of shrinking indexes ---
> the only way is REINDEX, or something else that reconstructs indexes
> from scratch, such as CLUSTER.  One of the things we need to look into
> is putting more smarts into VACUUM so that it automatically does
> something reasonable when faced with extreme cases like these.

If the user is running VACUUM FULL, he has presumably determined that the 
table is too bloated to be recovered in a graceful way, and quite likely the 
indexes are going to be bloated similarly.  So seemingly one might as well 
launch a reindexing on the table after VACUUM FULL has done its thing.  
Whether that should be automatic is another question but perhaps the advice 
should be documented somewhere?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



view thread (26+ messages)  latest in thread

Message-ID: <200603241150.20021.peter_e@gmx.net>
Permalink:  ../200603241150.20021.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200603241150.20021.peter_e@gmx.net

 · 

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: peter_e@gmx.net, tgl@sss.pgh.pa.us, gmaxwell@gmail.com
  Subject: Re: Bloated pg_shdepend_depender_index
  In-Reply-To: <200603241150.20021.peter_e@gmx.net>
  References: <e692861c0603231716j63d712eemfe7292ff968801a9@mail.gmail.com> <e692861c0603231958m11472300gb1c32cf0e998a3cd@mail.gmail.com> <27588.1143175698@sss.pgh.pa.us> <200603241150.20021.peter_e@gmx.net>

* 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