pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gregory Maxwell <gmaxwell@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Bloated pg_shdepend_depender_index
Date: Thu, 23 Mar 2006 23:48:18 -0500
Message-ID: <27588.1143175698@sss.pgh.pa.us> (raw)
In-Reply-To: <e692861c0603231958m11472300gb1c32cf0e998a3cd@mail.gmail.com>
References: <e692861c0603231716j63d712eemfe7292ff968801a9@mail.gmail.com>
	<20060324023105.GB11242@surnet.cl>
	<e692861c0603231911t43e793eer2a3ed144c46601c0@mail.gmail.com>
	<21266.1143170652@sss.pgh.pa.us>
	<e692861c0603231958m11472300gb1c32cf0e998a3cd@mail.gmail.com>

"Gregory Maxwell" <gmaxwell@gmail.com> writes:
> So it's by design that these now bloated index won't shrink if let
> unvacuumed? I didn't expect to hit something like that.

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.

			regards, tom lane



view thread (26+ messages)  latest in thread

Message-ID: <27588.1143175698@sss.pgh.pa.us>
Permalink:  ../27588.1143175698@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27588.1143175698@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, gmaxwell@gmail.com
  Subject: Re: Bloated pg_shdepend_depender_index
  In-Reply-To: <27588.1143175698@sss.pgh.pa.us>
  References: <e692861c0603231716j63d712eemfe7292ff968801a9@mail.gmail.com> <20060324023105.GB11242@surnet.cl> <e692861c0603231911t43e793eer2a3ed144c46601c0@mail.gmail.com> <21266.1143170652@sss.pgh.pa.us> <e692861c0603231958m11472300gb1c32cf0e998a3cd@mail.gmail.com> <27588.1143175698@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